Search code examples
rgraphvizigraph

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


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.


Solution

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

    write.graph(mygraph, file="filename", format="dot")