public class GraphWalker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GraphWalker.CycleException |
static interface |
GraphWalker.NodeProvider |
static interface |
GraphWalker.VertexProcessor |
Modifier and Type | Field and Description |
---|---|
static int |
MAX_WEIGHT |
Constructor and Description |
---|
GraphWalker(GraphWalker.NodeProvider nodeProvider) |
Modifier and Type | Method and Description |
---|---|
int |
getMinimumDistance(Object source,
Object dest,
int weight) |
boolean |
walkBreadthFirst(Object root,
GraphWalker.VertexProcessor processor) |
boolean |
walkDepthFirst(Object root,
GraphWalker.VertexProcessor processor) |
public static final int MAX_WEIGHT
public GraphWalker(GraphWalker.NodeProvider nodeProvider)
public boolean walkBreadthFirst(Object root, GraphWalker.VertexProcessor processor)
public boolean walkDepthFirst(Object root, GraphWalker.VertexProcessor processor) throws GraphWalker.CycleException
GraphWalker.CycleException
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.