pub fn write_graphml_file<T, A>(
graph: &Graph<T, A>,
file: &str,
) -> Result<(), Error>Expand description
Writes a Graph to a GraphML-formatted file.
The only attributes that are currently written are a “weight” attribute for edges.
§Arguments
graphtheGraphobject to write to filefilethe name of the file to write
§Examples
ⓘ
use graphrs::{generators, readwrite};
let graph = generators::social::karate_club_graph();
readwrite::graphml::write_graphml(&graph, "/some/file.graphml");