Struct cernan::matrix::Adjacency [] [src]

pub struct Adjacency<M: Clone> { /* fields omitted */ }

Adjacency matrix struct.

Methods

impl<M: Clone + Debug> Adjacency<M>
[src]

Poor man's adjacency matrix biased towards incident edge queries.

Edges are not symmetric. Two values are symmetrically adjacent when edges originate from each value to the other value.

[src]

Construct a new adjacency matrix.

[src]

Adds an outbound edge from a node to another.

[src]

Adds symmetric edges between the given node and a set of other nodes.

[src]

Returns the number of incident edges to the given node.

[src]

Returns true iff relations exist for the given node id.

Important traits for Vec<u8>
[src]

Filters and returns edges satisfying the given constraint.

Important traits for Iter<'a, K, V>
[src]

Iterates over edge relations in the matrix.

[src]

Pops adjacency metadata for the given node.

Important traits for Vec<u8>
[src]

As pop, but returns a vec of node identifiers connected to the given node.

Important traits for Vec<u8>
[src]

As pop, but returns a vec of edge metadata. Option values will be unwrapped and None values filtered.

Trait Implementations

impl<M: Clone + Debug> Default for Adjacency<M>
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<M> Send for Adjacency<M> where
    M: Send

impl<M> Sync for Adjacency<M> where
    M: Sync