dfs

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: 9 Imported by: 0

Documentation

Overview

Package dfs implements Dapth First Search algorithm (or DFS).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DFS

func DFS(g *gsd.Graph) string

DFS does Depth First Search and return the result in visited order.

func DFSVisit

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

DFSVisit recursively visits the vertices in the graph.

func DeleteNonAlnum

func DeleteNonAlnum(str string) string

DeleteNonAlnum removes all alphanumeric characters.

func Path

func Path(g *gsd.Graph, src, end *gsd.Vertex) bool

Path returns true if there is a path between two Vertices.

func ShowDFS

func ShowDFS(g *gsd.Graph, filename string) string

ShowDFS shows the traversed DFS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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