HyperPoint

Trait HyperPoint 

Source
pub trait HyperPoint: RawPoint {
    // Required method
    fn index(&self) -> &VertexId<Self::Key>;

    // Provided method
    fn raw_index(&self) -> &Self::Key { ... }
}
Expand description

[Point] is a trait that extends the RawPoint trait to provide additional functionality for points in a hypergraph, such as accessing the index and raw index.

Required Methods§

Source

fn index(&self) -> &VertexId<Self::Key>

returns the index of the point as a VertexId.

Provided Methods§

Source

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

returns the raw index of the point as a reference to the underlying key type.

Implementors§

Source§

impl<Id> HyperPoint for VertexId<Id>
where Id: RawIndex,

Source§

impl<T, Id> HyperPoint for Node<T, Id>
where Id: RawIndex,