pub struct Exploration {
pub edges: Vec<Edge>,
/* private fields */
}Expand description
Result of a multi-hop FrontierGraph::explore: each reached node
keyed to its hop distance, plus the edges inside the explored
subgraph.
Fields§
§edges: Vec<Edge>Implementations§
Source§impl Exploration
impl Exploration
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Total nodes reached (including the start node at hop 0).
Sourcepub fn nodes_at(&self, hop: usize) -> Vec<&str>
pub fn nodes_at(&self, hop: usize) -> Vec<&str>
Sorted node ids at exactly hop distance from the start.
Sourcepub fn edge_kind_counts(&self) -> BTreeMap<&'static str, usize>
pub fn edge_kind_counts(&self) -> BTreeMap<&'static str, usize>
Per-edge-kind counts within the explored subgraph.
Trait Implementations§
Source§impl Clone for Exploration
impl Clone for Exploration
Source§fn clone(&self) -> Exploration
fn clone(&self) -> Exploration
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 Exploration
impl Debug for Exploration
Source§impl Default for Exploration
impl Default for Exploration
Source§fn default() -> Exploration
fn default() -> Exploration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Exploration
impl RefUnwindSafe for Exploration
impl Send for Exploration
impl Sync for Exploration
impl Unpin for Exploration
impl UnsafeUnpin for Exploration
impl UnwindSafe for Exploration
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