V - The vertex typeE - The edge typepublic class TreeEdgeWithContent<V extends Vertex,E extends Edge<V>> extends java.lang.Object implements Edge<V>
Edge interface and adds the content attribute
Used for constructing SPQR-trees| Constructor and Description |
|---|
TreeEdgeWithContent()
Construct an empty edge
|
TreeEdgeWithContent(V origin,
V destination)
Constructs an edge between the given two vertices
|
TreeEdgeWithContent(V origin,
V destination,
Graph<V,E> content)
Constructs an edge between the given two vertices
|
| Modifier and Type | Method and Description |
|---|---|
Graph<V,E> |
getContent() |
V |
getDestination() |
V |
getOrigin() |
int |
getWeight() |
void |
setContent(Graph<V,E> content) |
void |
setDestination(V destination) |
void |
setOrigin(V origin) |
void |
setWeight(int weight) |
java.lang.String |
toString() |
public TreeEdgeWithContent()
public TreeEdgeWithContent(V origin, V destination)
origin - Origin vertexdestination - Destination vertexpublic int getWeight()
public V getOrigin()
public void setOrigin(V origin)
public V getDestination()
getDestination in interface Edge<V extends Vertex>public void setDestination(V destination)
setDestination in interface Edge<V extends Vertex>destination - Destination vertex to setpublic java.lang.String toString()
toString in class java.lang.Object