Function write_graphml_format_digraph
Source pub fn write_graphml_format_digraph<N, E, Ix, P>(
graph: &DiGraph<N, E, Ix>,
path: P,
weighted: bool,
) -> Result<()>
Expand description
Write a directed graph to GraphML format
§Arguments
graph - The directed graph to write
path - Path to the output file
weighted - Whether to include edge weights as data elements
§Returns
Ok(()) - If the graph was written successfully
Err(GraphError) - If there was an error writing the file