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§
Sourcefn domain_mut(&mut self) -> &mut Self::Store
fn domain_mut(&mut self) -> &mut Self::Store
returns a mutable reference to the domain of the edge
Provided Methods§
Sourcefn is_directed(&self) -> bool
fn is_directed(&self) -> bool
returns true if the edge is directed, false otherwise.
Sourcefn is_undirected(&self) -> bool
fn is_undirected(&self) -> bool
returns true if the edge is undirected, false otherwise.