TypeVertex
- The type of values stored in the vertices. Must be a Comparable type.public class GraphMultiDirectedUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>> extends java.lang.Object implements GraphDirectedUnvaluated<TypeVertex>, GraphMultiDirected<TypeVertex>, GraphMultiUnvaluated<TypeVertex>
Constructor and Description |
---|
GraphMultiDirectedUnvaluated()
Create a new graph.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the graph (vertices and edges).
|
EdgesMultiDirectedUnvaluated<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 GraphMultiDirectedUnvaluated()
public final void clear()
Graph
clear
in interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>>
public final EdgesMultiDirectedUnvaluated<TypeVertex> getEdges()
Graph
getEdges
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 GraphMulti<TypeVertex extends java.lang.Comparable<TypeVertex>>
getEdges
in interface GraphMultiDirected<TypeVertex extends java.lang.Comparable<TypeVertex>>
getEdges
in interface GraphMultiUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>>
getEdges
in interface GraphUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>>
public final VerticesDirected<TypeVertex> getVertices()
Graph
getVertices
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)
Graph
importFrom
in interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>>
graph
- The original graph.