Trait graphific::Kinship [−][src]
An interface for getting the successors and predecessors of each Vertex
.
Required methods
fn successors(&self) -> HashMap<Vertex<K, V>, Vec<Edge<K>>>
[src]
Get the successors of each vertex.
fn predecessors(&self) -> HashMap<Vertex<K, V>, Vec<Edge<K>>>
[src]
Get the predecessors of each vertex.
Provided methods
fn successors_as_key_and_edges(&self) -> HashMap<K, Vec<Edge<K>>>
[src]
Get the successors of each vertex where the key is a Key
.
fn predecessors_as_key_and_edges(&self) -> HashMap<K, Vec<Edge<K>>>
[src]
Get the predecessors of each vertex where the key is a Key
.
fn key_vertex_map(&self) -> HashMap<K, Vertex<K, V>>
[src]
Get the map of key and vertex.
Implementors
impl<K, V> Kinship<K, V> for BasicDirectedGraph<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
fn successors(&self) -> HashMap<Vertex<K, V>, Vec<Edge<K>>, RandomState>
[src]
Get the successors of each vertex. Complexity: O(V + E).
fn predecessors(&self) -> HashMap<Vertex<K, V>, Vec<Edge<K>>, RandomState>
[src]
Get the predecessors of each vertex. Complexity: O(V + E).
impl<K, V> Kinship<K, V> for BasicUndirectedGraph<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
fn successors(&self) -> HashMap<Vertex<K, V>, Vec<Edge<K>>, RandomState>
[src]
Get the successors of each vertex. Complexity: O(V + E).
fn predecessors(&self) -> HashMap<Vertex<K, V>, Vec<Edge<K>>, RandomState>
[src]
Get the predecessors of each vertex. Complexity: O(V + E).