Trait GraphEdge

Source
pub trait GraphEdge {
    type Idx;

    // Required methods
    fn src(&self) -> NodeIndex<Self::Idx>;
    fn target(&self) -> NodeIndex<Self::Idx>;
}

Required Associated Types§

Required Methods§

Source

fn src(&self) -> NodeIndex<Self::Idx>

Source

fn target(&self) -> NodeIndex<Self::Idx>

Implementors§

Source§

impl<Idx> GraphEdge for Link<Idx>
where Idx: Copy,

Source§

type Idx = Idx

Source§

impl<Idx, W> GraphEdge for Edge<Idx, W>
where Idx: Copy,

Source§

type Idx = Idx