pub struct ColorizedGraph {
pub graph: Graph,
pub vertex_color: Vec<i64>,
pub edge_color: Vec<i64>,
}Expand description
Result of Graph::simplify_and_colorize: a colored simple graph that
encodes a multigraph.
Fields§
§graph: GraphThe simple graph (no multi-edges, no self-loops).
vertex_color: Vec<i64>For each vertex, the number of self-loops it had in the input.
edge_color: Vec<i64>For each edge of graph, the number of parallel
input edges it replaces.
Trait Implementations§
Source§impl Clone for ColorizedGraph
impl Clone for ColorizedGraph
Source§fn clone(&self) -> ColorizedGraph
fn clone(&self) -> ColorizedGraph
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 ColorizedGraph
impl Debug for ColorizedGraph
Source§impl PartialEq for ColorizedGraph
impl PartialEq for ColorizedGraph
Source§fn eq(&self, other: &ColorizedGraph) -> bool
fn eq(&self, other: &ColorizedGraph) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColorizedGraph
Auto Trait Implementations§
impl !Sync for ColorizedGraph
impl Freeze for ColorizedGraph
impl RefUnwindSafe for ColorizedGraph
impl Send for ColorizedGraph
impl Unpin for ColorizedGraph
impl UnsafeUnpin for ColorizedGraph
impl UnwindSafe for ColorizedGraph
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