BfsAlg

Struct BfsAlg 

Source
pub struct BfsAlg<A, B, C, D, E>(pub A, pub B, pub C, pub D, pub E);

Tuple Fields§

§0: A§1: B§2: C§3: D§4: E

Implementations§

Source§

impl<A, B, C, D, E> BfsAlg<A, B, C, D, E>

Source

pub fn graph<N>(self, zero: N) -> BfsAlg<N, B, C, D, E>

Source

pub fn visitor<N>(self, one: N) -> BfsAlg<A, N, C, D, E>

Source

pub fn roots<N>(self, two: N) -> BfsAlg<A, B, N, D, E>

Source

pub fn color<N>(self, three: N) -> BfsAlg<A, B, C, N, E>

Source

pub fn queue<N>(self, four: N) -> BfsAlg<A, B, C, D, N>

Source§

impl<'a, G, V, R, C, Q> BfsAlg<&'a G, V, R, C, Q>

Source

pub fn run(self) -> Control
where G: Incidence, V: Visitor<G>, R: IntoIterator<Item = Vertex<G>>, C: ParamDerefMut, C::Target: VertexPropMut<G, Color>, Q: ParamDerefMut<Target = BfsQueue<G>>,

Source

pub fn root(self, root: Vertex<G>) -> BfsAlg<&'a G, V, Once<Vertex<G>>, C, Q>
where G: WithVertex,

Source

pub fn ignore_color_changes( self, ) -> BfsAlg<&'a G, V, R, Owned<IgnoreWriteProp<Color>>, Q>
where G: WithVertex,

Auto Trait Implementations§

§

impl<A, B, C, D, E> Freeze for BfsAlg<A, B, C, D, E>
where A: Freeze, B: Freeze, C: Freeze, D: Freeze, E: Freeze,

§

impl<A, B, C, D, E> RefUnwindSafe for BfsAlg<A, B, C, D, E>

§

impl<A, B, C, D, E> Send for BfsAlg<A, B, C, D, E>
where A: Send, B: Send, C: Send, D: Send, E: Send,

§

impl<A, B, C, D, E> Sync for BfsAlg<A, B, C, D, E>
where A: Sync, B: Sync, C: Sync, D: Sync, E: Sync,

§

impl<A, B, C, D, E> Unpin for BfsAlg<A, B, C, D, E>
where A: Unpin, B: Unpin, C: Unpin, D: Unpin, E: Unpin,

§

impl<A, B, C, D, E> UnwindSafe for BfsAlg<A, B, C, D, E>

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> IntoOwned<T> for T

Source§

fn into_owned(self) -> T

Source§

impl<G> Sets for G

Source§

fn vertices_complement<I>(&self, vertices: I) -> VerticesComplement<'_, Self>

Source§

fn edges_complement<I>(&self, edges: I) -> EdgesComplement<'_, Self>
where Self: EdgeList + WithEdgeProp<bool>, I: IntoIterator, I::Item: IntoOwned<Edge<Self>>,

Source§

fn independent_vertex_set_from_iter<I>( &self, vertices: I, ) -> IndependentVertexSetFromIter<'_, Self, I::IntoIter>

Source§

fn is_independent_vertex_set<I>(&self, vertices: I) -> bool

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.