Package game
Class Maze
java.lang.Object
game.Maze
- All Implemented Interfaces:
DirectedGraph<Node,,Edge> WeightedDigraph<Node,Edge>
A Maze is a weighted directed graph of game.Node and game.Edge objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe destination vertex for an edge in the graph.outgoingEdges(Node vertex) All outgoing edges from a vertex in the graphThe source vertex for an edge in the graph.doubleThe weight of an edge
-
Constructor Details
-
Maze
Creates: a maze from a set of Nodes.
-
-
Method Details
-
outgoingEdges
Description copied from interface:DirectedGraphAll outgoing edges from a vertex in the graph- Specified by:
outgoingEdgesin interfaceDirectedGraph<Node,Edge>
-
source
Description copied from interface:DirectedGraphThe source vertex for an edge in the graph.- Specified by:
sourcein interfaceDirectedGraph<Node,Edge>
-
dest
Description copied from interface:DirectedGraphThe destination vertex for an edge in the graph.- Specified by:
destin interfaceDirectedGraph<Node,Edge>
-
weight
Description copied from interface:WeightedDigraphThe weight of an edge- Specified by:
weightin interfaceWeightedDigraph<Node,Edge>
-