|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalvo.jesus.graph.GraphImpl
salvo.jesus.graph.WeightedGraphImpl
gr.demokritos.iit.jinsect.structs.Graph
gr.demokritos.iit.conceptualIndex.documentModel.SymbolicGraph
gr.demokritos.iit.jinsect.casc.structs.CASCGraph
public class CASCGraph
Represents a graph of named documents, allowing intermediate unnamed (latent) vertices.
Field Summary | |
---|---|
protected java.util.HashMap |
hVertexTypes
A HashMap of the Type of each Vertex in the graph. |
static java.lang.String |
LATENT
Constant indicative of the Latent vertex type. |
static java.lang.String |
NORMAL
Constant indicative of the Normal vertex type. |
Fields inherited from class gr.demokritos.iit.conceptualIndex.documentModel.SymbolicGraph |
---|
Alphabet, DataString |
Fields inherited from class gr.demokritos.iit.jinsect.structs.Graph |
---|
eclLocator, UniqueVertices |
Fields inherited from class salvo.jesus.graph.GraphImpl |
---|
factory, traversal |
Constructor Summary | |
---|---|
CASCGraph()
Creates a new instance of CASCGraph. |
Method Summary | |
---|---|
java.lang.String |
getVertexType(salvo.jesus.graph.Vertex v)
Gets the vertex type of a given vertex. |
void |
remove(salvo.jesus.graph.Vertex v)
Removes a given vertex from the graph, also erasing vertex type information. |
salvo.jesus.graph.Vertex |
setVertexType(salvo.jesus.graph.Vertex v,
java.lang.String sType)
Sets the vertex type of a vertex. |
Methods inherited from class gr.demokritos.iit.conceptualIndex.documentModel.SymbolicGraph |
---|
addEdge, getAlphabet, getCommonSubnode, getDataString, getLinkBetween, getLinkBetween, getNotificationListener, getPathBetween, getPathBetween, getPathLength, getPathWeight, getShortestLinkBetween, getShortestLinkBetween, loadFromFile, main, removeNotificationListener, setDataString, setNotificationListener |
Methods inherited from class gr.demokritos.iit.jinsect.structs.Graph |
---|
add, contains, locateVertex |
Methods inherited from class salvo.jesus.graph.WeightedGraphImpl |
---|
addEdge, getClosest, minimumSpanningTree, setMinimumSpanningTreeAlgorithm, setShortestPathAlgorithm, shortestPath |
Methods inherited from class salvo.jesus.graph.GraphImpl |
---|
addEdge, addGraphAddEdgeListener, addGraphAddVertexListener, addGraphRemoveEdgeListener, addGraphRemoveVertexListener, addListener, cloneVertices, containsEdge, containsVertex, forgetConnectedSets, getAdjacentVertices, getAdjacentVertices, getConnectedSet, getConnectedSet, getDegree, getDegree, getEdges, getEdgesCount, getEdgeSet, getGraphFactory, getTraversal, getVertexSet, getVertices, getVerticesCount, getVerticesIterator, isConnected, removeEdge, removeEdges, removeGraphAddEdgeListener, removeGraphAddVertexListener, removeGraphRemoveEdgeListener, removeGraphRemoveVertexListener, removeListener, setGraphFactory, setTraversal, toString, traverse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface salvo.jesus.graph.Graph |
---|
addEdge, addGraphAddEdgeListener, addGraphAddVertexListener, addGraphRemoveEdgeListener, addGraphRemoveVertexListener, addListener, cloneVertices, getAdjacentVertices, getAdjacentVertices, getConnectedSet, getConnectedSet, getDegree, getDegree, getEdges, getEdgesCount, getEdgeSet, getGraphFactory, getTraversal, getVertexSet, getVertices, getVerticesCount, getVerticesIterator, isConnected, removeEdge, removeEdges, removeGraphAddEdgeListener, removeGraphAddVertexListener, removeGraphRemoveEdgeListener, removeGraphRemoveVertexListener, removeListener, setGraphFactory, setTraversal, traverse |
Field Detail |
---|
public static final java.lang.String NORMAL
public static final java.lang.String LATENT
protected java.util.HashMap hVertexTypes
Constructor Detail |
---|
public CASCGraph()
Method Detail |
---|
public salvo.jesus.graph.Vertex setVertexType(salvo.jesus.graph.Vertex v, java.lang.String sType)
v
- The vertex to define.sType
- A string indicating the type of the vertex. The constants NORMAL, LATENT have been
predefined in the class to help the use of this method.
public java.lang.String getVertexType(salvo.jesus.graph.Vertex v)
v
- The vertex to define.
public void remove(salvo.jesus.graph.Vertex v) throws java.lang.Exception
remove
in interface salvo.jesus.graph.Graph
remove
in class Graph
v
- The vertex to remove.
java.lang.Exception
- An exception is thrown, if the vertex cannot be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |