Trait graph_neighbor_matching::Edges
[−]
[src]
pub trait Edges { fn num_edges(&self) -> usize; fn nth_edge(&self, n: usize) -> Option<usize>; fn nth_edge_weight(&self, n: usize) -> Option<Closed01<f32>>; }
Trait used by the internal algorithm.
Required Methods
fn num_edges(&self) -> usize
The number of edges
fn nth_edge(&self, n: usize) -> Option<usize>
Returns the target node of the nth-edge
fn nth_edge_weight(&self, n: usize) -> Option<Closed01<f32>>
Returns the nth edge weight. We expect edge weights to be normalized in the range [0, 1].
Implementors
impl Edges for EdgeList