bfs

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 bfs implements Breadth First Search algorithm (or BFS).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BFS

func BFS(g *gsd.Graph, src *gsd.Vertex) string

BFS does Breadth First Search and return the result in visited order.

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 ShowBFS

func ShowBFS(g *gsd.Graph, src *gsd.Vertex, filename string) string

ShowBFS shows the traversed BFS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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