V - The vertex typeE - The edge typepublic class Component<V extends Vertex,E extends Edge<V>>
extends java.lang.Object
| Constructor and Description |
|---|
Component()
Construct a component with an empty list of edges
|
Component(java.util.List<E> edges)
Constructs a component and sets the edges
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<E> |
getEdges() |
void |
setEdges(java.util.List<E> edges) |
java.lang.String |
toString() |
public Component()
public Component(java.util.List<E> edges)
edges - Edges of the component