Struct matrixgraph::Digraph
[−]
[src]
pub struct Digraph { /* fields omitted */ }
A digraph represented by a dense adjacency matrix of fixed size
The cells of the adjacency matrix are assigned values of type Option
Methods
impl Digraph
[src]
fn new(size: usize) -> Digraph
Creates a new digraph object with a fixed size.
fn from_vec(weights: &Vec<Option<f64>>) -> Digraph
Creates a new digraph object with a fixed size from a vector that is the row-wise representation of an adjacency matrix.
fn to_vec(&self) -> Vec<Option<f64>>
Returns the vector that is the row-wise representation of the adjacency matrix of the digraph.
Trait Implementations
impl PartialEq for Digraph
[src]
fn eq(&self, __arg_0: &Digraph) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Digraph) -> bool
This method tests for !=
.
impl Clone for Digraph
[src]
fn clone(&self) -> Digraph
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more