Trait 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§

Source

type Edge

The underlying edge.

Required Methods§

Source

fn is_incoming(&self) -> bool

Whether the edge is incoming.

Source

fn edge(&self) -> Self::Edge

The underlying edge.

Provided Methods§

Source

fn is_outgoing(&self) -> bool

Whether the edge is outgoing.

Implementors§

Source§

impl<E> DirectedEdge for NetworkDirectedEdge<E>
where E: Clone,

Source§

type Edge = E

Source§

impl<ID> DirectedEdge for rs_graph::linkedlistgraph::Edge<ID>
where ID: PrimInt + Unsigned,

Source§

type Edge = Edge<ID>

Source§

impl<ID> DirectedEdge for rs_graph::vecgraph::Edge<ID>
where ID: PrimInt + Unsigned,

Source§

type Edge = Edge<ID>