pub trait GraphBuilder<N, P, E> {
// Required methods
fn add_node(&mut self, node: N) -> Result<(), E>;
fn add_edge(&mut self, n1: &N, n2: &N, p: &P) -> Result<(), E>;
fn remove_node(&mut self, node: &N) -> Result<(), E>;
fn remove_edge(&mut self, n1: &N, n2: &N, p: &P) -> Result<(), E>;
}Required Methods§
Sourcefn add_edge(&mut self, n1: &N, n2: &N, p: &P) -> Result<(), E>
fn add_edge(&mut self, n1: &N, n2: &N, p: &P) -> Result<(), E>
Add an edge to the graph
Edges are expected to have properties. If an Implementation does not have them it should use ().