tsdag

package
v0.0.0-...-e7df020 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package tsdag finds the topological sort.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DFSVisit

func DFSVisit(g *gsd.Graph, src *gsd.Vertex, stamp int64, result *slice.Sequence, exist *bool)

DFSVisit recursively visits the vertices in the graph. And it ends when it finds a cycle in a graph.

func TSDAG

func TSDAG(g *gsd.Graph) (string, bool)

TSDAG returns topological sort using DFS. It returns false if there is a cycle which means that there is no topological sort.

Types

This section is empty.

Jump to

Keyboard shortcuts

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