public class Graph
extends java.lang.Object
| Constructor and Description |
|---|
Graph()
The constructor initialise the array lists
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(Edge edgeToAdd)
This method is used to add more simply one edge to the graph
|
void |
addVertex(Vertex vertexToAdd)
This method is used to add more simply one vertex to the graph
|
java.util.ArrayList<Edge> |
getListEdges()
getter of the list of edges of the current graph
|
java.util.ArrayList<Vertex> |
getListVertices()
getter on the list of vertices of the current graph
|
void |
setListEdges(java.util.ArrayList<Edge> listEdges)
setter of the list of edge of the graph
|
void |
setListVertices(java.util.ArrayList<Vertex> listVertices)
Set on the list of the connected vertices
|
public java.util.ArrayList<Vertex> getListVertices()
public void setListVertices(java.util.ArrayList<Vertex> listVertices)
listVertices - the list which represent a treepublic java.util.ArrayList<Edge> getListEdges()
public void setListEdges(java.util.ArrayList<Edge> listEdges)
listEdges - the list of edge which define the graphpublic void addEdge(Edge edgeToAdd)
edgeToAdd - the edge to add to the current graphpublic void addVertex(Vertex vertexToAdd)
vertexToAdd - the vertex to add to the graph