[][src]Struct libjp::FullGraph

pub struct FullGraph<'a>(_);

A wrapper around Graggle implementing the [graph::Graph] trait.

This represents only the entire graggle, even the nodes that are deleted. To examine only the live parts of the graggle, use LiveGraph.

Trait Implementations

impl<'a> Graph for FullGraph<'a>[src]

type Node = NodeId

type Edge = Edge

fn out_neighbors(
    &'a self,
    u: &Self::Node
) -> Map<Box<dyn Iterator<Item = Self::Edge> + 'a>, fn(Self::Edge) -> Self::Node>

fn in_neighbors(
    &'a self,
    u: &Self::Node
) -> Map<Box<dyn Iterator<Item = Self::Edge> + 'a>, fn(Self::Edge) -> Self::Node>

fn dfs(&'a self) -> Dfs<'a, Self>

fn dfs_from(&'a self, root: &Self::Node) -> Dfs<'a, Self>

fn has_path(&self, u: &Self::Node, v: &Self::Node) -> bool

fn tarjan(&self) -> Partition<Self>

fn weak_components(&self) -> Partition<Self>

fn doubled(&'a self) -> Doubled<'a, Self>

Returns the graph that has edges in both directions for every edge that this graph has in one direction. Read more

fn node_filtered<F>(&'a self, predicate: F) -> NodeFiltered<'a, Self, F> where
    F: Fn(&Self::Node) -> bool

Returns the subgraph of this graph that is induced by the set of nodes for which predicate returns true. Read more

fn edge_filtered<F>(&'a self, predicate: F) -> EdgeFiltered<'a, Self, F> where
    F: Fn(&Self::Node, &Self::Edge) -> bool

Returns the subgraph of this graph containing all the edges for which the predicate returns true. Read more

fn top_sort(&'a self) -> Option<Vec<Self::Node>>

If this graph is acyclic, returns a topological sort of the vertices. Otherwise, returns None. Read more

fn linear_order(&'a self) -> Option<Vec<Self::Node>>

fn neighbor_set<'a, I>(&self, set: I) -> HashSet<Self::Node, RandomState> where
    I: Iterator<Item = &'a Self::Node>,
    Self::Node: 'a, 

Returns the set of all nodes that are adjacent (either an in-neighbor or an out-neighbor) to something in set. Read more

Auto Trait Implementations

impl<'a> Send for FullGraph<'a>

impl<'a> Sync for FullGraph<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self