infovis.graph.algorithm
Class BreadthFirst
java.lang.Object
infovis.graph.algorithm.Algorithm
infovis.graph.algorithm.BreadthFirst
public class BreadthFirst
- extends Algorithm
Breadth first search algorithm for Graphs.
- Version:
- $Revision: 1.3 $
- Author:
- Jean-Daniel Fekete
BreadthFirst
public BreadthFirst(Graph graph)
- Constructor for BreadthFirst.
visit
public void visit(BreadthFirst.Visitor vis,
int start)
- Performs a breadth-first traversal of a graph.
- Parameters:
vis
- the Visitorstart
- the starting vertex
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.