pub fn write_digraph<N, E, Ix, P>(
graph: &DiGraph<N, E, Ix>,
path: P,
format: GraphFormat,
weighted: bool,
) -> Result<()>Expand description
Writes a directed graph to a file
§Arguments
graph- The directed graph to writepath- Path to the output fileformat- Format to write the file inweighted- Whether to include edge weights
§Returns
Ok(())- If the graph was written successfullyErr(GraphError)- If there was an error writing the file