pub struct GFAdigraph(pub Graph<usize, (Orientation, Orientation, Option<i64>)>);
Expand description

A wrapper of petgraph’s directed Graph struct, applied to a GFA. The edge weights included are the Orientation’s of the adjacent segments, and the coverage of this edge.

Tuple Fields

0: Graph<usize, (Orientation, Orientation, Option<i64>)>

Implementations

The main function called from gfatk dot.

It is a somewhat modified, simplified version of this: https://docs.rs/petgraph/latest/src/petgraph/dot.rs.html#1-349

Generating a DOT language output of a GFA file.

Split the GFA digraph into subgraphs which are the weakly connected components of the graph.

Taken from https://github.com/Qiskit/retworkx/blob/79900cf8da0c0665ac5ce1ccb0f57373434b14b8/src/connectivity/mod.rs

The main function called from gfatk linear.

This function will generate the longest path through the GFA, by filtering the output of all_paths, and choosing the path with the highest cumulative edge coverage.

Simple wrapper of Graph.node_count() in petgraph.

Simple wrapper of Graph.edge_count() in petgraph.

Trim a graph to include only nodes connected to two or more other nodes.

This algorithm will loop for as long as the longest branch in the GFA yields a segment connected to only a single node.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.