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.double
The weight of an edge
-
Constructor Details
-
Maze
Creates: a maze from a set of Nodes.
-
-
Method Details
-
outgoingEdges
Description copied from interface:DirectedGraph
All outgoing edges from a vertex in the graph- Specified by:
outgoingEdges
in interfaceDirectedGraph<Node,
Edge>
-
source
Description copied from interface:DirectedGraph
The source vertex for an edge in the graph.- Specified by:
source
in interfaceDirectedGraph<Node,
Edge>
-
dest
Description copied from interface:DirectedGraph
The destination vertex for an edge in the graph.- Specified by:
dest
in interfaceDirectedGraph<Node,
Edge>
-
weight
Description copied from interface:WeightedDigraph
The weight of an edge- Specified by:
weight
in interfaceWeightedDigraph<Node,
Edge>
-