[][src]Trait handlegraph::mutablehandlegraph::AdditiveHandleGraph

pub trait AdditiveHandleGraph {
    fn append_handle(&mut self, sequence: &[u8]) -> Handle;
fn create_handle<T: Into<NodeId>>(
        &mut self,
        sequence: &[u8],
        node_id: T
    ) -> Handle;
fn create_edge(&mut self, edge: Edge); }

Methods for adding handles and edges to a graph.

Required methods

fn append_handle(&mut self, sequence: &[u8]) -> Handle[src]

Add a node with the provided sequence to the graph, letting the graph pick the node ID.

fn create_handle<T: Into<NodeId>>(
    &mut self,
    sequence: &[u8],
    node_id: T
) -> Handle
[src]

Add a node with the provided sequence and ID to the graph.

fn create_edge(&mut self, edge: Edge)[src]

Insert an edge into the graph. Implementations may panic if both handles of the edge do not already exist.

Loading content...

Implementors

impl AdditiveHandleGraph for HashGraph[src]

impl AdditiveHandleGraph for PackedGraph[src]

Loading content...