pub struct Biadjacency {
pub matrix: Matrix,
pub row_ids: Vec<VertexId>,
pub col_ids: Vec<VertexId>,
}Expand description
A bipartite adjacency matrix, the output of Graph::get_biadjacency.
Fields§
§matrix: MatrixThe matrix: rows correspond to vertices of type false, columns to
vertices of type true; an element is the number of edges (or the
total weight of the edges) between the two vertices.
row_ids: Vec<VertexId>The vertex id of each row.
col_ids: Vec<VertexId>The vertex id of each column.
Trait Implementations§
Source§impl Clone for Biadjacency
impl Clone for Biadjacency
Source§fn clone(&self) -> Biadjacency
fn clone(&self) -> Biadjacency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Biadjacency
impl Debug for Biadjacency
Source§impl PartialEq for Biadjacency
impl PartialEq for Biadjacency
Source§fn eq(&self, other: &Biadjacency) -> bool
fn eq(&self, other: &Biadjacency) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Biadjacency
Auto Trait Implementations§
impl Freeze for Biadjacency
impl RefUnwindSafe for Biadjacency
impl Send for Biadjacency
impl Sync for Biadjacency
impl Unpin for Biadjacency
impl UnsafeUnpin for Biadjacency
impl UnwindSafe for Biadjacency
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