pub enum AdjacencyMode {
Directed,
Undirected,
Max,
Min,
Plus,
Upper,
Lower,
}Expand description
How to interpret the input matrix as an adjacency matrix.
Matches igraph_adjacency_t from include/igraph_constructors.h.
Variants§
Directed
Directed graph; A(i, j) is the multiplicity of the arc
i → j.
Undirected
Undirected graph; A(i, j) is the multiplicity of the edge
{i, j}. The matrix must be symmetric.
Max
Undirected; the edge multiplicity of {i, j} is
max(A(i, j), A(j, i)).
Min
Undirected; the edge multiplicity of {i, j} is
min(A(i, j), A(j, i)).
Plus
Undirected; the edge multiplicity of {i, j} is
A(i, j) + A(j, i).
Upper
Undirected; only entries with i < j (the strict upper
triangle) plus the diagonal contribute edges.
Lower
Undirected; only entries with i > j (the strict lower
triangle) plus the diagonal contribute edges.
Trait Implementations§
Source§impl Clone for AdjacencyMode
impl Clone for AdjacencyMode
Source§fn clone(&self) -> AdjacencyMode
fn clone(&self) -> AdjacencyMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdjacencyMode
impl Debug for AdjacencyMode
Source§impl Hash for AdjacencyMode
impl Hash for AdjacencyMode
Source§impl PartialEq for AdjacencyMode
impl PartialEq for AdjacencyMode
impl Copy for AdjacencyMode
impl Eq for AdjacencyMode
impl StructuralPartialEq for AdjacencyMode
Auto Trait Implementations§
impl Freeze for AdjacencyMode
impl RefUnwindSafe for AdjacencyMode
impl Send for AdjacencyMode
impl Sync for AdjacencyMode
impl Unpin for AdjacencyMode
impl UnsafeUnpin for AdjacencyMode
impl UnwindSafe for AdjacencyMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more