TypeVertex
- The type of values stored in the vertices. Must be a Comparable type.public class GraphSimpleUndirectedUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>> extends java.lang.Object implements GraphUndirectedUnvaluated<TypeVertex>, GraphSimpleUndirected<TypeVertex>, GraphSimpleUnvaluated<TypeVertex>
Constructor and Description |
---|
GraphSimpleUndirectedUnvaluated()
Create a new graph.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the graph (vertices and edges).
|
EdgesSimpleUndirectedUnvaluated<TypeVertex> |
getEdges()
Get the edges of the graph.
|
VerticesUndirected<TypeVertex> |
getVertices()
Get the vertices of the graph.
|
void |
importFrom(Graph<TypeVertex> graph)
Import a graph from another one.
|
public GraphSimpleUndirectedUnvaluated()
public final void clear()
Graph
clear
in interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>>
public final EdgesSimpleUndirectedUnvaluated<TypeVertex> getEdges()
Graph
getEdges
in interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>>
getEdges
in interface GraphSimple<TypeVertex extends java.lang.Comparable<TypeVertex>>
getEdges
in interface GraphSimpleUndirected<TypeVertex extends java.lang.Comparable<TypeVertex>>
getEdges
in interface GraphSimpleUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>>
getEdges
in interface GraphUndirected<TypeVertex extends java.lang.Comparable<TypeVertex>>
getEdges
in interface GraphUndirectedUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>>
getEdges
in interface GraphUnvaluated<TypeVertex extends java.lang.Comparable<TypeVertex>>
public final VerticesUndirected<TypeVertex> getVertices()
Graph
getVertices
in interface Graph<TypeVertex extends java.lang.Comparable<TypeVertex>>
getVertices
in interface GraphUndirected<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.