Skip to main content

EdgeEndpointGraph

Trait EdgeEndpointGraph 

Source
pub trait EdgeEndpointGraph: EdgeSourceGraph + EdgeTargetGraph {
    // Provided method
    fn endpoints(
        &self,
        edge: Self::RelationId,
    ) -> (Self::ElementId, Self::ElementId) { ... }
}
Expand description

Capability for resolving both directed edge endpoints.

Binary graph form of complete relation endpoint lookup. Implementations may back it with an edge table, compact arrays, generated edges, or validated snapshot sections.

Provided Methods§

Source

fn endpoints( &self, edge: Self::RelationId, ) -> (Self::ElementId, Self::ElementId)

Returns (source, target) for edge. edge must be a valid edge ID.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§