Rgraphviz: multiple edges between nodes
1
0
Entering edit mode
@rainer-machne-3648
Last seen 10.3 years ago
Hi, Is it correct that Rgraphviz - unlike graphviz itself - currently can not handle multiple edges between a pair of nodes (example given below)? Are there any plans to allow for multiple edges in future versions, or it already possible with other commands then the ones used below? Rainer g <- new("graphNEL", edgemode="directed") g <- addNode(c("a", "b"), g) g <- addEdge("a", "b", g) g <- addEdge("a", "b", g) Warning message: In .local(from, to, graph) : The following edges already exist and will be replaced: a|b This is however possible in graphviz itself: file: multiedge.dot digraph { a->b; a->b; } and calling dot on commandline ("dot multiedge.dot -Tpng -o multiedge.png") produces the intended output wiht multiple edges.
Rgraphviz Rgraphviz • 2.2k views
ADD COMMENT
0
Entering edit mode
@herve-pages-1542
Last seen 22 minutes ago
Seattle, WA, United States
Hi Rainer, I've never used it and I don't know if it handles multiple edges between a pair of nodes but AFAIK the igraph package (from CRAN) is an alternative to Rgraphviz that you might want to try. Since this is not a Bioconductor package, any questions about it should go to the R-help mailing list or directly to the maintainer of the package. Cheers, H. Rainer Machne wrote: > Hi, > > Is it correct that Rgraphviz - unlike graphviz itself - currently can > not handle multiple edges between a pair of nodes (example given below)? > > Are there any plans to allow for multiple edges in future versions, or > it already possible with other commands then the ones used below? > > Rainer > > > g <- new("graphNEL", edgemode="directed") > g <- addNode(c("a", "b"), g) > g <- addEdge("a", "b", g) > g <- addEdge("a", "b", g) > > Warning message: > In .local(from, to, graph) : > The following edges already exist and will be replaced: > a|b > > > This is however possible in graphviz itself: > > file: multiedge.dot > > digraph { > a->b; > a->b; > } > > and calling dot on commandline ("dot multiedge.dot -Tpng -o > multiedge.png") produces the intended output wiht multiple edges. > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor -- Hervé Pagès Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M2-B876 P.O. Box 19024 Seattle, WA 98109-1024 E-mail: hpages at fhcrc.org Phone: (206) 667-5791 Fax: (206) 667-1319
ADD COMMENT

Login before adding your answer.

Traffic: 631 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6