icentral_graph/connect_node_ids.rs
1crate::ix!();
2
3impl<GH> ConnectNodeIds for Graph<GH> {
4
5 fn connect_nodeids(&mut self, src: NodeId, dst: NodeId)
6 -> Result<(),BetweennessCentralityError>
7 {
8 debug!("in {}, connecting nodeids {} and {}", self.name(), src, dst);
9
10 self.insert_edge(&Edge::new(src,dst));
11
12 Ok(())
13 }
14}