Skip to main content

EdgeSourceGraph

Trait EdgeSourceGraph 

Source
pub trait EdgeSourceGraph: TopologyBase {
    // Required method
    fn source(&self, edge: Self::RelationId) -> Self::ElementId;
}
Expand description

Capability for resolving directed edge sources.

Separated from EdgeTargetGraph because some layouts (e.g. outgoing-only CSR) can resolve targets cheaply but need extra indexing for sources.

Required Methods§

Source

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

Returns the source node of 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§