public abstract class Graph.Edge extends java.lang.Object implements Child
Graph.Vertex
.Modifier and Type | Field and Description |
---|---|
int |
v0
v0 and v1, the Vertices of 'this' Edge.
|
int |
v1
v0 and v1, the Vertices of 'this' Edge.
|
Constructor and Description |
---|
Edge(int v0,
int v1)
If 'this' is
Graph.isDirected() 〈v0,v1〉, otherwise
'this' is Graph.isUndirected() , (vs,vb)
where vs is the smaller and vb
is the larger Vertex. |
Modifier and Type | Method and Description |
---|---|
Value |
label()
The Edge label, if any.
|
boolean |
labelled()
Are (all) Edges labelled in 'this' Graph?
|
Graph |
parent()
Return the parent Graph of which 'this' is a Child.
|
abstract java.lang.String |
toString() |
public final int v0
public final int v1
public Edge(int v0, int v1)
Graph.isDirected()
〈v0,v1〉, otherwise
'this' is Graph.isUndirected()
, (vs,vb)
where vs is the smaller and vb
is the larger Vertex.public Graph parent()
Child
public boolean labelled()
public Value label()
public abstract java.lang.String toString()
toString
in class java.lang.Object