T - The type of the labels on the edgespublic class LabelledGraph<T extends Event>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
LabelledGraph.DepthVisitor
Graph visitor computing the depth of a graph
|
| Modifier and Type | Field and Description |
|---|---|
static int |
s_maxRecursionSteps
The maximum number of recursion steps in a graph algorithm
|
| Constructor and Description |
|---|
LabelledGraph()
Creates an empty graph
|
LabelledGraph(LabelledGraph<T> graph)
Creates a copy of a graph graph
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Vertex<T> v)
Adds a vertex to this graph.
|
void |
addAll(java.util.Collection<Vertex<T>> vertices)
Adds a set of vertices to this graph.
|
float[][] |
getAdjacencyMatrix()
Produces the adjacency matrix of the Cayley Graph.
|
int |
getDepth()
Gets the depth of the graph.
|
int |
getEdgeCount()
Gets the number of edges in the graph
|
java.util.List<Edge<T>> |
getEdges()
Gets the list of all edges in the graph
|
Vertex<T> |
getInitialVertex()
Gets the initial vertex of the Cayley graph
|
Vertex<T> |
getVertex(int id)
Gets the vertex with given ID
|
int |
getVertexCount()
Gets the number of vertices in the graph
|
java.util.List<java.lang.Integer> |
getVertexLabels()
Fetches the list of all vertex IDs present in the graph
|
Vertex<T> |
getVertexWithId(int id)
Gets the vertex with given ID
|
java.util.Set<Vertex<T>> |
getVertices()
Gets the set of vertices of this graph
|
void |
setInitialVertexId(int id)
Sets the ID of the initial vertex
|
public static final transient int s_maxRecursionSteps
public LabelledGraph()
public LabelledGraph(LabelledGraph<T> graph)
graph - The graph to copypublic Vertex<T> getVertex(int id)
id - The IDpublic void add(Vertex<T> v)
v - The vertexpublic void addAll(java.util.Collection<Vertex<T>> vertices)
v - The vertexpublic float[][] getAdjacencyMatrix()
public java.util.List<java.lang.Integer> getVertexLabels()
public Vertex<T> getVertexWithId(int id)
id - The IDpublic int getEdgeCount()
public int getVertexCount()
public java.util.Set<Vertex<T>> getVertices()
public java.util.List<Edge<T>> getEdges()
public Vertex<T> getInitialVertex()
public void setInitialVertexId(int id)
id - The IDpublic int getDepth()
Copyright © Sylvain HallĂ©. All Rights Reserved.