pub struct ConnectivityGraph { /* private fields */ }Expand description
Complete topology over a declared source-qualified object universe.
Implementations§
Source§impl ConnectivityGraph
impl ConnectivityGraph
Sourcepub fn try_new(
nodes: impl IntoIterator<Item = ObjectId>,
connections: impl IntoIterator<Item = VerifiedConnection>,
coverage: CompleteTopologyEvidence,
) -> Result<Self, TopologyError>
pub fn try_new( nodes: impl IntoIterator<Item = ObjectId>, connections: impl IntoIterator<Item = VerifiedConnection>, coverage: CompleteTopologyEvidence, ) -> Result<Self, TopologyError>
Constructs a graph, rejecting ambiguous nodes and partial connection endpoints.
Sourcepub fn coverage(&self) -> &CompleteTopologyEvidence
pub fn coverage(&self) -> &CompleteTopologyEvidence
Evidence proving that the graph is a complete projection for its declared scope.
Sourcepub fn reachable_from(
&self,
origin: &ObjectId,
minimum_clear_width_metres: f64,
) -> Result<Vec<ObjectId>, TopologyError>
pub fn reachable_from( &self, origin: &ObjectId, minimum_clear_width_metres: f64, ) -> Result<Vec<ObjectId>, TopologyError>
Returns every node reachable through edges meeting the clear-width threshold.
Sourcepub fn route(
&self,
origin: &ObjectId,
destination: &ObjectId,
minimum_clear_width_metres: f64,
) -> Result<RouteOutcome, TopologyError>
pub fn route( &self, origin: &ObjectId, destination: &ObjectId, minimum_clear_width_metres: f64, ) -> Result<RouteOutcome, TopologyError>
Finds the deterministic shortest-hop route meeting the clear-width threshold.
Trait Implementations§
Source§impl Clone for ConnectivityGraph
impl Clone for ConnectivityGraph
Source§fn clone(&self) -> ConnectivityGraph
fn clone(&self) -> ConnectivityGraph
Returns a copy 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 moreSource§impl Debug for ConnectivityGraph
impl Debug for ConnectivityGraph
Source§impl PartialEq for ConnectivityGraph
impl PartialEq for ConnectivityGraph
impl StructuralPartialEq for ConnectivityGraph
Auto Trait Implementations§
impl Freeze for ConnectivityGraph
impl RefUnwindSafe for ConnectivityGraph
impl Send for ConnectivityGraph
impl Sync for ConnectivityGraph
impl Unpin for ConnectivityGraph
impl UnwindSafe for ConnectivityGraph
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