[−][src]Struct ojo_graph::Doubled
Trait Implementations
impl<'a, G: ?Sized> Graph for Doubled<'a, G> where
G: Graph,
[src]
G: Graph,
type Node = G::Node
type Edge = G::Edge
fn nodes<'b>(&'b self) -> Box<dyn Iterator<Item = G::Node> + 'b>
[src]
fn out_edges<'b>(
&'b self,
u: &Self::Node
) -> Box<dyn Iterator<Item = G::Edge> + 'b>
[src]
&'b self,
u: &Self::Node
) -> Box<dyn Iterator<Item = G::Edge> + 'b>
fn in_edges<'b>(
&'b self,
u: &Self::Node
) -> Box<dyn Iterator<Item = G::Edge> + 'b>
[src]
&'b self,
u: &Self::Node
) -> Box<dyn Iterator<Item = G::Edge> + 'b>
fn out_neighbors<'a>(
&'a self,
u: &Self::Node
) -> Map<Box<dyn Iterator<Item = Self::Edge> + 'a>, fn(_: Self::Edge) -> Self::Node>
[src]
&'a self,
u: &Self::Node
) -> Map<Box<dyn Iterator<Item = Self::Edge> + 'a>, fn(_: Self::Edge) -> Self::Node>
fn in_neighbors<'a>(
&'a self,
u: &Self::Node
) -> Map<Box<dyn Iterator<Item = Self::Edge> + 'a>, fn(_: Self::Edge) -> Self::Node>
[src]
&'a self,
u: &Self::Node
) -> Map<Box<dyn Iterator<Item = Self::Edge> + 'a>, fn(_: Self::Edge) -> Self::Node>
ⓘImportant traits for Dfs<'a, G>fn dfs<'a>(&'a self) -> Dfs<'a, Self>
[src]
ⓘImportant traits for Dfs<'a, G>
ⓘImportant traits for Dfs<'a, G>fn dfs_from<'a>(&'a self, root: &Self::Node) -> Dfs<'a, Self>
[src]
ⓘImportant traits for Dfs<'a, G>
fn has_path(&self, u: &Self::Node, v: &Self::Node) -> bool
[src]
fn tarjan(&self) -> Partition<Self>
[src]
fn weak_components(&self) -> Partition<Self>
[src]
fn doubled<'a>(&'a self) -> Doubled<'a, Self>
[src]
Returns the graph that has edges in both directions for every edge that this graph has in one direction. Read more
fn node_filtered<'a, F>(&'a self, predicate: F) -> NodeFiltered<'a, Self, F> where
F: Fn(&Self::Node) -> bool,
[src]
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<'a, F>(&'a self, predicate: F) -> EdgeFiltered<'a, Self, F> where
F: Fn(&Self::Node, &Self::Edge) -> bool,
[src]
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>(&'a self) -> Option<Vec<Self::Node>>
[src]
If this graph is acyclic, returns a topological sort of the vertices. Otherwise, returns None
. Read more
fn linear_order<'a>(&'a self) -> Option<Vec<Self::Node>>
[src]
fn neighbor_set<'a, I: Iterator<Item = &'a Self::Node>>(
&self,
set: I
) -> HashSet<Self::Node> where
Self::Node: 'a,
[src]
&self,
set: I
) -> HashSet<Self::Node> where
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
impl<'a, G: Clone + Graph + ?Sized> Clone for Doubled<'a, G>
[src]
fn clone(&self) -> Doubled<'a, G>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, G: Debug + Graph + ?Sized> Debug for Doubled<'a, G>
[src]
Auto Trait Implementations
impl<'a, G: ?Sized> Send for Doubled<'a, G> where
G: Sync,
G: Sync,
impl<'a, G: ?Sized> Sync for Doubled<'a, G> where
G: Sync,
G: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,