pub struct SimplifyAndColorize {
pub graph: Graph,
pub vertex_color: Vec<u32>,
pub edge_color: Vec<u32>,
}Expand description
The colored simple graph produced by simplify_and_colorize.
vertex_color has one entry per vertex of the input (self-loop
multiplicities); edge_color has one entry per edge of graph (the
parallel-edge multiplicities, each >= 1).
Fields§
§graph: GraphThe simplified graph: no self-loops, no multi-edges. Same vertex count and directedness as the input.
vertex_color: Vec<u32>Self-loop multiplicity of each input vertex (vcount entries).
edge_color: Vec<u32>Multiplicity of each merged edge in SimplifyAndColorize::graph
(ecount entries, each >= 1).
Trait Implementations§
Source§impl Clone for SimplifyAndColorize
impl Clone for SimplifyAndColorize
Source§fn clone(&self) -> SimplifyAndColorize
fn clone(&self) -> SimplifyAndColorize
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 moreAuto Trait Implementations§
impl !Freeze for SimplifyAndColorize
impl !RefUnwindSafe for SimplifyAndColorize
impl Send for SimplifyAndColorize
impl !Sync for SimplifyAndColorize
impl Unpin for SimplifyAndColorize
impl UnsafeUnpin for SimplifyAndColorize
impl UnwindSafe for SimplifyAndColorize
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