pub trait Weights<C> {
    fn rows(&self) -> usize;
    fn columns(&self) -> usize;
    fn at(&self, row: usize, col: usize) -> C;
    fn neg(&self) -> Self
    where
        Self: Sized,
        C: Signed
; }
Expand description

Adjacency matrix for weights.

Required Methods§

Return the number of rows.

Return the number of columns.

Return the element at position.

Return the negated weights.

Implementors§