virgo
virgo copied to clipboard
Topological sort should return depth and support multiple roots
- Vertices should be
type Vertex interface{}instead of string - Sort should return
[][]Vertexinstead of[]string, grouping tasks that can be done in parallel together. This would support multiple roots