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);