[][src]Trait graph_neighbor_matching::Edges

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].

Loading content...

Implementors

impl Edges for EdgeList[src]

Loading content...