TypeVertex - The type of values stored in the vertices. Must be a Comparable type.public class GraphSimpleDirectedUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>> extends java.lang.Object implements GraphDirectedUnvaluated<TypeVertex>, GraphSimpleDirected<TypeVertex>, GraphSimpleUnvaluated<TypeVertex>
| Constructor and Description |
|---|
GraphSimpleDirectedUnvaluated()
Create a new graph.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the graph (vertices and edges).
|
EdgesSimpleDirectedUnvaluated<TypeVertex> |
getEdges()
Get the edges of the graph.
|
VerticesDirected<TypeVertex> |
getVertices()
Get the vertices of the graph.
|
void |
importFrom(Graph<TypeVertex> graph)
Import a graph from another one.
|
public GraphSimpleDirectedUnvaluated()
public final void clear()
Graphclear in interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>>public final EdgesSimpleDirectedUnvaluated<TypeVertex> getEdges()
GraphgetEdges in interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>>getEdges in interface GraphDirected<TypeVertex extends java.lang.Comparable<TypeVertex>>getEdges in interface GraphDirectedUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>>getEdges in interface GraphSimple<TypeVertex extends java.lang.Comparable<TypeVertex>>getEdges in interface GraphSimpleDirected<TypeVertex extends java.lang.Comparable<TypeVertex>>getEdges in interface GraphSimpleUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>>getEdges in interface GraphUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>>public final VerticesDirected<TypeVertex> getVertices()
GraphgetVertices in interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>>getVertices in interface GraphDirected<TypeVertex extends java.lang.Comparable<TypeVertex>>getVertices in interface GraphUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>>public final void importFrom(Graph<TypeVertex> graph)
GraphimportFrom in interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>>graph - The original graph.