pub struct Contraction<N: IndexedSeq<Input = NodeId, Output = NodeId>>(pub N);Expand description
Tuple Fields§
§0: NImplementations§
Source§impl<N: IndexedSeq<Input = NodeId, Output = NodeId>> Contraction<N>
impl<N: IndexedSeq<Input = NodeId, Output = NodeId>> Contraction<N>
Sourcepub fn underlying_node_id(&self, self_node: NodeId) -> NodeId
pub fn underlying_node_id(&self, self_node: NodeId) -> NodeId
Given a node id in a ContiguousSubgraph, returns the corresponding node id
in the ContiguousSubgraph’s underlying graph
Sourcepub fn num_nodes(&self) -> usize
pub fn num_nodes(&self) -> usize
Returns the number of node ids in the ContiguousSubgraph.
Note: this can be an overapproximation if the underlying graph is a subgraph
Source§impl<N: ContractionBackend> Contraction<N>
impl<N: ContractionBackend> Contraction<N>
Sourcepub fn node_id_from_underlying(&self, underlying_node: NodeId) -> Option<NodeId>
pub fn node_id_from_underlying(&self, underlying_node: NodeId) -> Option<NodeId>
Given a node id in a ContiguousSubgraph’s underlying graph, returns the
corresponding node id in the ContiguousSubgraph
Auto Trait Implementations§
impl<N> Freeze for Contraction<N>where
N: Freeze,
impl<N> RefUnwindSafe for Contraction<N>where
N: RefUnwindSafe,
impl<N> Send for Contraction<N>where
N: Send,
impl<N> Sync for Contraction<N>where
N: Sync,
impl<N> Unpin for Contraction<N>where
N: Unpin,
impl<N> UnwindSafe for Contraction<N>where
N: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.