BinaryDomain

Trait BinaryDomain 

Source
pub trait BinaryDomain<Idx>: RawDomain<Key = VertexId<Idx>>
where Idx: RawIndex,
{ // Required methods fn src(&self) -> &Self::Key; fn tgt(&self) -> &Self::Key; }
Expand description

The BinaryDomain trait extends the RawDomain trait to provide specific methods for binary edges, which are edges that connect exactly two vertices.

Required Methods§

Source

fn src(&self) -> &Self::Key

returns the left-hand side vertex of the edge.

Source

fn tgt(&self) -> &Self::Key

returns the right-hand side vertex of the edge.

Implementations on Foreign Types§

Source§

impl<I> BinaryDomain<I> for (VertexId<I>, VertexId<I>)
where I: RawIndex,

Source§

fn src(&self) -> &VertexId<I>

Source§

fn tgt(&self) -> &VertexId<I>

Source§

impl<I> BinaryDomain<I> for [VertexId<I>; 2]
where I: RawIndex,

Source§

fn src(&self) -> &VertexId<I>

Source§

fn tgt(&self) -> &VertexId<I>

Implementors§