icentral-graph 0.1.0

A Rust library for advanced graph manipulation, focusing on minimum union cycles, betweenness centrality, and biconnected components.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
crate::ix!();

impl<GH> ConnectNodeIds for Graph<GH> {

    fn connect_nodeids(&mut self, src: NodeId, dst: NodeId) 
    -> Result<(),BetweennessCentralityError> 
    {
        debug!("in {}, connecting nodeids {} and {}", self.name(), src, dst);

        self.insert_edge(&Edge::new(src,dst));

        Ok(())
    }
}