igraph-help
[Top][All Lists]
Advanced

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

[igraph] Error in using graph.bipartite()


From: address@hidden
Subject: [igraph] Error in using graph.bipartite()
Date: Wed, 5 Mar 2014 21:26:12 +0800

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
 

address@hidden

reply via email to

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