igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Error in using graph.bipartite()


From: address@hidden
Subject: Re: [igraph] Error in using graph.bipartite()
Date: Thu, 6 Mar 2014 08:35:36 +0800

Thank you
 
best
Xueming
 

address@hidden
 
From: Gábor Csárdi
Date: 2014-03-05 22:02
To: Help for igraph users
Subject: Re: [igraph] Error in using graph.bipartite()
This is not how graph.bipartite() works. See the example and especially the graph it creates, at the bottom of http://igraph.org/r/doc/graph.bipartite.html.

Gabor


On Wed, Mar 5, 2014 at 8:26 AM, address@hidden <address@hidden> wrote:
Hi
 
I am using graph.bipartite to generate a bipartite graph.
Here is the source code and the error information:
 
> v<-0:7
> e<-c(0,4,1,6,3,7,2,6,1,5)
> g<-graph.bipartite(v,e)
error in graph.bipartite(v, e) :
  At bipartite.c:497 : Invalid (negative) vertex id, Invalid vertex id
 
Where am I making mistakes?
 
Moreover, I want to convert a directed graph into a bipartite graph by splitting each vertice into two vertices. Is there any function can do this?
 
Thanks
 
best
Xueming
 


_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

[Prev in Thread] Current Thread [Next in Thread]