topological-sort-graph

command module
v0.0.0-...-fe77ba7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2020 License: ISC Imports: 2 Imported by: 0

README

Topological Sort

We will use a Directed Graph.

directed graph:
a -> v
a -> c
b -> d
b -> c
d -> z
z -> f
c -> e
c -> q
q -> r
e -> f

In order to track the sorted list we will use a linked list. One could think of the topological sort as a dependency build tree. for instance "c" depends on "a" and "e" depends on "c".

to track all the visited nodes This implementation uses a map of string -> bool.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL