public class GrafoMEM extends edu.uci.ics.jung.graph.SparseGraph<Vertice,Arco>
| Modifier and Type | Field and Description |
|---|---|
private Vertice |
root |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
GrafoMEM(MEM mem)
Crea un hipergrafo dirigido a partir de un MEM
|
| Modifier and Type | Method and Description |
|---|---|
private Vertice |
addVertexForce(Vertice v)
Añade un nuevo vértice al grafo aunque éste ya exista.
|
Arco |
getEdge(Arco arco)
Obtiene un arco del grafo que se corresponda con el pasado como argumento (o null en caso de que el
grafo no contenga el arco).
|
ListaInt |
getIntEsCabeza(Vertice v)
Obtiene una lista de interpretaciones que se corresponden con los arcos que llegan a un vértice
determinado.
|
Vector<Vertice> |
getLevel(int lvl)
Obtiene el conjunto de vértices que se encuentran en un nivel del grafo.
|
Vertice |
getRoot()
Obtiene el vértice raíz del grafo.
|
addEdge, addVertex, containsEdge, containsVertex, findEdge, findEdgeSet, getDefaultEdgeType, getDest, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getEndpoints, getFactory, getIncidentEdges, getInEdges, getNeighbors, getOutEdges, getPredecessors, getSource, getSuccessors, getVertexCount, getVertices, isDest, isSource, removeEdge, removeVertexaddEdge, addEdge, addEdge, addEdge, addEdge, degree, getIncidentCount, getIncidentVertices, getNeighborCount, getOpposite, getPredecessorCount, getSuccessorCount, getValidatedEndpoints, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprivate Vertice root
private static final long serialVersionUID
public GrafoMEM(MEM mem)
memaux - El MEM al que representará el grafo.private Vertice addVertexForce(Vertice v)
v - El vértice a insertar.public Vector<Vertice> getLevel(int lvl)
lvl - El nivel del que queremos obtener el conjunto de vértices.public ListaInt getIntEsCabeza(Vertice v)
v - El vértice del que queremos obtener la lista de interpretaciones.public Arco getEdge(Arco arco)
arco - Un arco igual al que queremos obtener (se consideran iguales dos arcos que tengan el mismo
valor en sus atributos "interpretacion", "count" y "virtual").public Vertice getRoot()