pub struct FederatedGraph { /* private fields */ }Expand description
Validated in-memory projection used for bounded graph traversal.
Implementations§
Source§impl FederatedGraph
impl FederatedGraph
Sourcepub fn new(nodes: Vec<Node>, edges: Vec<Edge>) -> Result<Self, TraceError>
pub fn new(nodes: Vec<Node>, edges: Vec<Edge>) -> Result<Self, TraceError>
Builds a deterministic graph projection and rejects dangling edges.
§Errors
Returns TraceError::DanglingEdge when an edge endpoint is absent.
Sourcepub fn trace(
&self,
from: &NodeId,
to: &NodeId,
max_depth: usize,
) -> Result<TraceReport, TraceError>
pub fn trace( &self, from: &NodeId, to: &NodeId, max_depth: usize, ) -> Result<TraceReport, TraceError>
Finds the first deterministic breadth-first path between two anchors.
An empty report with a coverage gap means no confirmed path was observed within the bound; it does not mean the repositories are independent.
§Errors
Returns TraceError for missing anchors, zero depth, or inconsistent graph state.
Trait Implementations§
Source§impl Clone for FederatedGraph
impl Clone for FederatedGraph
Source§fn clone(&self) -> FederatedGraph
fn clone(&self) -> FederatedGraph
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 moreAuto Trait Implementations§
impl Freeze for FederatedGraph
impl RefUnwindSafe for FederatedGraph
impl Send for FederatedGraph
impl Sync for FederatedGraph
impl Unpin for FederatedGraph
impl UnsafeUnpin for FederatedGraph
impl UnwindSafe for FederatedGraph
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