Separate algorithms from base graph type.
Separate algorithms from base type. Use Vertex type throughout.