Vertices

Trait Vertices 

Source
pub trait Vertices<T>
where T: Ord,
{ // Required method fn vertices(&self) -> BTreeSet<&T>; }
Expand description

Vertices returns the set of the vertices which comprise the graph.

§Example

use btree_graph::{BTreeGraph, AddVertex, Vertices};
let mut graph: BTreeGraph<String, usize> = BTreeGraph::new();

assert_eq!(graph.vertices().len(), 0);

Required Methods§

Source

fn vertices(&self) -> BTreeSet<&T>

Implementors§

Source§

impl<V, E> Vertices<V> for BTreeGraph<V, E>
where V: Ord, E: Ord,