pub fn write_gfa<W: Write>(
writer: &mut W,
graph: &DiGraph<String, f32>,
) -> Result<()>Expand description
Writes a GFA file from a directed graph.
§Arguments
writer- A mutable reference to an object implementing theWritetrait.graph- A reference to a directed graph where nodes are sequences and edges are links with weights.
§Returns
A Result which is Ok if the file was written successfully, or an Err if an I/O error occurred.
§Errors
This function will return an error if any I/O operation fails.
§Panics
This function will panic if:
- The file cannot be opened.
- Any line in the file cannot be read.