Class Connection<V>

java.lang.Object
squidpony.squidai.graph.Edge<V>
squidpony.squidai.graph.Connection<V>
Type Parameters:
V - the vertex type; often Coord
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Connection.DirectedConnection, Connection.UndirectedConnection

public class Connection<V>
extends Edge<V>
implements Serializable
The most-commonly-used class that represents an edge between nodes on a Graph. Different kinds of graph will use different subclasses of this to represent their edges: Connection.DirectedConnection or Connection.UndirectedConnection. These subclasses don't add new functionality, but they compare differently during hashing and equality checks.
Author:
earlygrey
See Also:
Serialized Form