Class UndirectedGraph<V>
java.lang.Object
com.github.yellowstonegames.path.Graph<V>
com.github.yellowstonegames.path.UndirectedGraph<V>
- Type Parameters:
V- the vertex type; oftenCoord
- All Implemented Interfaces:
Externalizable, Serializable
- Direct Known Subclasses:
DefaultGraph
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Connection<V> addConnection(Node<V> a, Node<V> b, float weight) protected Connection<V> booleanCheck if the graph is directed, that is whether the edges form an ordered pair or a set.protected Connection<V> protected booleanremoveConnection(Node<V> a, Node<V> b) toString()Methods inherited from class Graph
addConnection, addEdge, addEdge, addVertex, addVertices, addVertices, connectionExists, contains, disconnect, disconnect, edgeExists, equals, getEdge, getEdgeCount, getEdges, getEdges, getNode, getNodes, getVertices, hashCode, readExternal, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeEdgeIf, removeEdges, removeNode, removeVertex, removeVertexIf, removeVertices, size, sortEdges, sortVertices, writeExternal
-
Field Details
-
algorithms
-
-
Constructor Details
-
UndirectedGraph
public UndirectedGraph() -
UndirectedGraph
-
-
Method Details
-
obtainEdge
- Specified by:
obtainEdgein classGraph<V>
-
addConnection
- Overrides:
addConnectionin classGraph<V>
-
removeConnection
-
getEdge
-
isDirected
public boolean isDirected()Description copied from class:GraphCheck if the graph is directed, that is whether the edges form an ordered pair or a set.- Overrides:
isDirectedin classGraph<V>- Returns:
- whether the graph is directed
-
createNew
-
algorithms
- Specified by:
algorithmsin classGraph<V>
-
toString
-