nick.graph
Class Edge<E>
java.lang.Object
nick.graph.GraphElement<E>
nick.graph.Edge<E>
- Direct Known Subclasses:
- EdgeDouble
public class Edge<E>
- extends GraphElement<E>
A basic edge class which extends the GraphElement class.
A graph G = (V, E) is comprised of a set of vertices (V) and edges (E). The
set of edges are comprised of {u, v} edge pairs of vertices in G. Two
vertices are said to be adjacent if they share an edge.
Note that in the edge class it is more natural that an edge have a value
before a name.
- Version:
- March 13, 2009
- Author:
- Nick Aschenbach
Constructor Summary |
Edge(E the_data)
Construct a new Vertex object. |
Edge(E the_data,
java.lang.String the_name)
Construct a new Vertex object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Edge
public Edge(E the_data)
- Construct a new Vertex object.
- Parameters:
the_data
- Set the data of this vertex.
Edge
public Edge(E the_data,
java.lang.String the_name)
- Construct a new Vertex object.
- Parameters:
the_data
- Set the data of this vertex.the_name
- Set the name of this vertex.