Trait rs_graph::traits::DirectedEdge
source · pub trait DirectedEdge {
type Edge;
// Required methods
fn is_incoming(&self) -> bool;
fn edge(&self) -> Self::Edge;
// Provided method
fn is_outgoing(&self) -> bool { ... }
}
Expand description
A directed edge.
A directed edge is either incoming or outgoing.
Required Associated Types§
Required Methods§
sourcefn is_incoming(&self) -> bool
fn is_incoming(&self) -> bool
Whether the edge is incoming.
Provided Methods§
sourcefn is_outgoing(&self) -> bool
fn is_outgoing(&self) -> bool
Whether the edge is outgoing.