Dear Mr/Mrs,
    I am writing to report a possible bug for igraph in R platform. It seems 
that igraph cannot well define undirected graph, that means it can not remove 
the redundant links in the network. For example, I try to create a undirected 
graph with the following text:

> Test.txt
A       B
B       A
A       B

My R command codes are:
> library(igraph)
> Data<-read.table("Test.txt")
> Data<-as.matrix(Data)
> g<-graph.edgelist(Data,directed=F)
> degree(g)

The result is as following:
A B 
3 3 

It seems weird. It uses A - B edge for three times in the creation of this 
undirected graph. 
I am not sure whether this is due to my wrong command line or not. 
Look forward to your reply.


Best wishes
Wenyu Zhang




_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to