pub struct TinyGraphDemo {
pub node_count: usize,
pub edge_count: usize,
pub bfs_order: Vec<usize>,
pub mst_edge_ids: Vec<usize>,
pub mst_total_weight: i64,
}Expand description
Report produced by the tiny graph cookbook recipe.
Fields§
§node_count: usizeNumber of graph nodes.
edge_count: usizeNumber of graph edges.
bfs_order: Vec<usize>Breadth-first traversal order from node 0.
mst_edge_ids: Vec<usize>Minimum-spanning-tree edge ids.
mst_total_weight: i64Minimum-spanning-tree total weight.
Trait Implementations§
Source§impl Clone for TinyGraphDemo
impl Clone for TinyGraphDemo
Source§fn clone(&self) -> TinyGraphDemo
fn clone(&self) -> TinyGraphDemo
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 TinyGraphDemo
impl Debug for TinyGraphDemo
impl Eq for TinyGraphDemo
Source§impl PartialEq for TinyGraphDemo
impl PartialEq for TinyGraphDemo
impl StructuralPartialEq for TinyGraphDemo
Auto Trait Implementations§
impl Freeze for TinyGraphDemo
impl RefUnwindSafe for TinyGraphDemo
impl Send for TinyGraphDemo
impl Sync for TinyGraphDemo
impl Unpin for TinyGraphDemo
impl UnsafeUnpin for TinyGraphDemo
impl UnwindSafe for TinyGraphDemo
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