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, [email protected] <[email protected]>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 > > ------------------------------ > [email protected] > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > >
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
