TypeVertex
- The type of values stored in the vertices. Must be a Comparable type.public interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>> extends BubuntuGraph
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the graph (vertices and edges).
|
Edges<TypeVertex,? extends Edge<TypeVertex>> |
getEdges()
Get the edges of the graph.
|
Vertices<TypeVertex,? extends Vertex<TypeVertex>> |
getVertices()
Get the vertices of the graph.
|
void |
importFrom(Graph<TypeVertex> graph)
Import a graph from another one.
|
void clear()
Edges<TypeVertex,? extends Edge<TypeVertex>> getEdges()
Vertices<TypeVertex,? extends Vertex<TypeVertex>> getVertices()
void importFrom(Graph<TypeVertex> graph)
graph
- The original graph.