Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a package to convert network() or igraph() networks to Rgraphviz compatible in R?

Tags:

r

graphviz

igraph

Spent a lot of time formatting networks in the formats used for analysis in SNA and igraph packages. Is there a bridge between these and Rgraphviz's desired data-type? By this, I mean, preserves: Source-to-destination, Label, Edge weight, other attributes like color, etc.

like image 405
Mittenchops Avatar asked Mar 12 '12 08:03

Mittenchops


1 Answers

Yes, very easily, and clearly in the igraph documentation:

write.graph(mygraph, file="filename", format="dot")
like image 158
Mittenchops Avatar answered Nov 15 '22 07:11

Mittenchops