Struct HyperLabelGraph

Source
pub struct HyperLabelGraph<L: Label> { /* private fields */ }

Implementations§

Source§

impl<L: Label> HyperLabelGraph<L>

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl Adjacency<'_> for HyperLabelGraph<SingleLabel>

Source§

fn get_adj(&'a self) -> AdjacencyList<'a, Self>

Source§

fn get_post( &'a self, adj: &AdjacencyList<'a, Self>, node: &Self::Node, ) -> impl Iterator<Item = &'a Self::Node>

Source§

impl AdjacencyInv<'_> for HyperLabelGraph<SingleLabel>

Source§

fn get_adj_inv(&'a self) -> AdjacencyList<'a, Self>

Source§

fn get_pre( &'a self, adj_inv: &AdjacencyList<'a, Self>, node: &Self::Node, ) -> impl Iterator<Item = &'a Self::Node>

Source§

impl<'a, L: Label> Graph<'a> for HyperLabelGraph<L>

Source§

type Node = LabelNode<L>

Source§

type Edge = LabeledEdge<SingleLabel>

Source§

fn nodes(&'a self) -> impl Iterator<Item = &'a Self::Node>

Source§

fn edges(&'a self) -> impl Iterator<Item = &'a Self::Edge>

Source§

fn add_node(&mut self, node: Self::Node)

Source§

fn add_edge(&mut self, edge: Self::Edge)

Source§

fn get_edges_pair( &'a self, ) -> impl Iterator<Item = (&'a Self::Node, &'a Self::Node)>

Source§

fn get_edges_pair_with_edge( &'a self, ) -> impl Iterator<Item = (&'a Self::Node, &'a Self::Edge, &'a Self::Node)>

Source§

impl<L: Label> HyperLabeled<'_> for HyperLabelGraph<L>

Source§

type L = L

Source§

fn set_same_label_fn(&mut self, f: Box<dyn Fn(&Self::L, &Self::L) -> bool>)

Source§

impl<'a, L: Label> Labeled<'a> for HyperLabelGraph<L>

Source§

fn label_same(&self, node: &Self::Node, label: &Self::Node) -> bool

Source§

fn get_label(&'a self, node: &'a Self::Node) -> &'a impl Label

Source§

fn get_edges_pair_label( &'a self, ) -> impl Iterator<Item = (&'a Self::Node, &'a Self::Node, &'a impl Label)>

Source§

fn edge_label_same(&self, _: &Self::Edge, _: &Self::Edge) -> bool

Source§

fn edge_node_label_same( &self, _: &Self::Node, _: &Self::Edge, _: &Self::Node, _: &Self::Node, _: &Self::Edge, _: &Self::Node, ) -> bool

Source§

impl Directed for HyperLabelGraph<SingleLabel>

Auto Trait Implementations§

§

impl<L> Freeze for HyperLabelGraph<L>

§

impl<L> !RefUnwindSafe for HyperLabelGraph<L>

§

impl<L> !Send for HyperLabelGraph<L>

§

impl<L> !Sync for HyperLabelGraph<L>

§

impl<L> Unpin for HyperLabelGraph<L>
where L: Unpin,

§

impl<L> !UnwindSafe for HyperLabelGraph<L>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.