RawLayout

Trait RawLayout 

Source
pub trait RawLayout {
    type Index: RawIndex;
    type Kind: GraphType;
    type Store: Domain<Self::Index>;

    // Required methods
    fn index(&self) -> &EdgeId<Self::Index>;
    fn domain(&self) -> &Self::Store;
    fn domain_mut(&mut self) -> &mut Self::Store;

    // Provided methods
    fn is_directed(&self) -> bool { ... }
    fn is_undirected(&self) -> bool { ... }
}
Expand description

RawLayout establishes a common interface for hyperedge representations.

Required Associated Types§

Required Methods§

Source

fn index(&self) -> &EdgeId<Self::Index>

returns an immutable reference to the edge index

Source

fn domain(&self) -> &Self::Store

returns a reference to the domain of the edge

Source

fn domain_mut(&mut self) -> &mut Self::Store

returns a mutable reference to the domain of the edge

Provided Methods§

Source

fn is_directed(&self) -> bool

returns true if the edge is directed, false otherwise.

Source

fn is_undirected(&self) -> bool

returns true if the edge is undirected, false otherwise.

Implementors§

Source§

impl<S, K, Idx> RawLayout for Link<S, K, Idx>
where Idx: RawIndex, K: GraphType, S: Domain<Idx>,

Source§

type Kind = K

Source§

type Index = Idx

Source§

type Store = S

Source§

impl<T, S, Idx, K> RawLayout for Edge<T, S, K, Idx>
where Idx: RawIndex, K: GraphType, S: Domain<Idx>,

Source§

type Kind = K

Source§

type Index = Idx

Source§

type Store = S