pub struct NodeColoringValues { /* private fields */ }Expand description
Values for coloring nodes.
This implements the Values trait to provide coloring values and outputs based on the selected
NodeColoringScheme.
Implementations§
Source§impl NodeColoringValues
impl NodeColoringValues
Sourcepub fn new(graph: &Graph, scheme: NodeColoringScheme) -> Self
pub fn new(graph: &Graph, scheme: NodeColoringScheme) -> Self
Create new coloring values for the given graph and scheme.
Sourcepub fn indices_values(&self) -> impl Iterator<Item = (usize, usize)>
pub fn indices_values(&self) -> impl Iterator<Item = (usize, usize)>
Get an iterator over the node indices of the graph as it was in new and their
corresponding values.
Sourcepub fn scheme(&self) -> NodeColoringScheme
pub fn scheme(&self) -> NodeColoringScheme
Get the coloring scheme.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeColoringValues
impl RefUnwindSafe for NodeColoringValues
impl Send for NodeColoringValues
impl Sync for NodeColoringValues
impl Unpin for NodeColoringValues
impl UnwindSafe for NodeColoringValues
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