write_popgraph: Convience function for file exports
Description
This function is a chokepoint for exporting popgraph
objects to other formats.
Usage
write_popgraph(graph, file, format = "pgraph", ...)
Arguments
graph
An object of type popgraph
.
file
The path to save the graph into.
format
The type of output file to use. Options
are:
- json Save as JSON format
- kml Save to KML format to view in GoogleEarth
- graphml Save as Graph Markup Language
- html Save to an interactive html format
viewable in your browser
- pajek Save as input
to Pajek
- pgraph Save as input for
GeneticStudio (default)
- adjacency Saves as an
adjacency matrix in csv format
- paths Saves as
shortest paths matrix in csv format
- weights
Saves as weighted adjacency matrix in csv format