pub struct GraphMatrixMap {
pub node_to_row: Vec<usize>,
pub row_to_node: Vec<usize>,
pub edge_to_entry: Vec<Option<(usize, usize)>>,
pub policy: String,
}Expand description
Mapping metadata recording how graph elements landed in the matrix.
Fields§
§node_to_row: Vec<usize>node_to_row[node] is the matrix row for node (identity here).
row_to_node: Vec<usize>row_to_node[row] is the node for a matrix row (identity here).
edge_to_entry: Vec<Option<(usize, usize)>>edge_to_entry[edge_id] is the (row, col) the edge contributed to.
policy: StringThe multiedge policy applied, as a label.
Trait Implementations§
Source§impl Clone for GraphMatrixMap
impl Clone for GraphMatrixMap
Source§fn clone(&self) -> GraphMatrixMap
fn clone(&self) -> GraphMatrixMap
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 GraphMatrixMap
impl Debug for GraphMatrixMap
impl Eq for GraphMatrixMap
Source§impl PartialEq for GraphMatrixMap
impl PartialEq for GraphMatrixMap
impl StructuralPartialEq for GraphMatrixMap
Auto Trait Implementations§
impl Freeze for GraphMatrixMap
impl RefUnwindSafe for GraphMatrixMap
impl Send for GraphMatrixMap
impl Sync for GraphMatrixMap
impl Unpin for GraphMatrixMap
impl UnsafeUnpin for GraphMatrixMap
impl UnwindSafe for GraphMatrixMap
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