[][src]Trait graph_neighbor_matching::Edges

pub trait Edges {
    pub fn num_edges(&self) -> usize;
pub fn nth_edge(&self, n: usize) -> Option<usize>;
pub fn nth_edge_weight(&self, n: usize) -> Option<EdgeWeight>; }

Abstract representation of the edges of a node. Used by the algorithm.

Required methods

pub fn num_edges(&self) -> usize[src]

The number of edges

pub fn nth_edge(&self, n: usize) -> Option<usize>[src]

Returns the target node of the nth-edge

pub fn nth_edge_weight(&self, n: usize) -> Option<EdgeWeight>[src]

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