[][src]Trait traitgraph::MutableGraphContainer

pub trait MutableGraphContainer<NodeData, EdgeData, IndexType> {
    fn add_node(&mut self, node_data: NodeData) -> NodeIndex<IndexType>;
fn add_edge(
        &mut self,
        from: NodeIndex<IndexType>,
        to: NodeIndex<IndexType>,
        edge_data: EdgeData
    ) -> EdgeIndex<IndexType>;
fn remove_node(&mut self, node_id: NodeIndex<IndexType>) -> Option<NodeData>;
fn remove_edge(&mut self, edge_id: EdgeIndex<IndexType>) -> Option<EdgeData>; }

Required methods

fn add_node(&mut self, node_data: NodeData) -> NodeIndex<IndexType>

fn add_edge(
    &mut self,
    from: NodeIndex<IndexType>,
    to: NodeIndex<IndexType>,
    edge_data: EdgeData
) -> EdgeIndex<IndexType>

fn remove_node(&mut self, node_id: NodeIndex<IndexType>) -> Option<NodeData>

fn remove_edge(&mut self, edge_id: EdgeIndex<IndexType>) -> Option<EdgeData>

Loading content...

Implementations on Foreign Types

impl<NodeData, EdgeData> MutableGraphContainer<NodeData, EdgeData, usize> for Graph<NodeData, EdgeData, Directed, usize>[src]

Loading content...

Implementors

Loading content...