Package | Description |
---|---|
squidpony.squidai.graph |
Graphs and graph algorithms used primarily (but not exclusively) for pathfinding.
|
Modifier and Type | Class and Description |
---|---|
class |
Connection<V>
The most-commonly-used class that represents an edge between nodes on a Graph.
|
static class |
Connection.DirectedConnection<V>
A Connection that treats A-to-B as a different edge from B-to-A.
|
static class |
Connection.UndirectedConnection<V>
A Connection that treats A-to-B and B-to-A as the same edge.
|
Modifier and Type | Method and Description |
---|---|
Edge<V> |
Graph.getEdge(V v,
V w)
Retrieve the edge which is from v to w.
|
Modifier and Type | Method and Description |
---|---|
java.util.SortedSet<? extends Edge<V>> |
Graph.getEdges()
Get a collection containing all the edges in the graph.
|
java.util.List<? extends Edge<V>> |
Graph.getEdges(V v)
Get a collection containing all the edges which have v as a source.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Graph.removeEdge(Edge<V> edge) |
Copyright © Eben Howard 2012–2022. All rights reserved.