Function write_gfa

Source
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 the Write trait.
  • 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:

  1. The file cannot be opened.
  2. Any line in the file cannot be read.