|
||||||||||
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.UniqueVertexGraph
gr.demokritos.iit.conceptualIndex.structs.DistributionGraph
public class DistributionGraph
A graph with weighted edges mapped to distributions.
Field Summary | |
---|---|
java.util.HashMap |
EdgeDistros
The mapping between edges and distributions. |
Fields inherited from class gr.demokritos.iit.jinsect.structs.UniqueVertexGraph |
---|
UniqueVertices |
Fields inherited from class salvo.jesus.graph.GraphImpl |
---|
factory, traversal |
Constructor Summary | |
---|---|
DistributionGraph()
Creates a new instance of DistributionGraph. |
Method Summary | |
---|---|
Distribution |
getEdgeDistro(salvo.jesus.graph.Edge e)
Returns the distribution mapped to a selected edge. |
void |
removeEdge(salvo.jesus.graph.Edge edge)
Removes the selected edge from the graph. |
void |
setEdgeDistro(salvo.jesus.graph.Edge e,
Distribution d)
Maps an edge to a distribution. |
java.lang.String |
toString()
Returns a string representation of the distribution graph. |
Methods inherited from class gr.demokritos.iit.jinsect.structs.UniqueVertexGraph |
---|
add, addEdge, addEdge, contains, locateVertex, main |
Methods inherited from class salvo.jesus.graph.WeightedGraphImpl |
---|
addEdge, getClosest, minimumSpanningTree, setMinimumSpanningTreeAlgorithm, setShortestPathAlgorithm, shortestPath |
Methods inherited from class salvo.jesus.graph.GraphImpl |
---|
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, remove, removeEdges, removeGraphAddEdgeListener, removeGraphAddVertexListener, removeGraphRemoveEdgeListener, removeGraphRemoveVertexListener, removeListener, setGraphFactory, setTraversal, 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 |
---|
addGraphAddEdgeListener, addGraphAddVertexListener, addGraphRemoveEdgeListener, addGraphRemoveVertexListener, addListener, cloneVertices, getAdjacentVertices, getAdjacentVertices, getConnectedSet, getConnectedSet, getDegree, getDegree, getEdges, getEdgesCount, getEdgeSet, getGraphFactory, getTraversal, getVertexSet, getVertices, getVerticesCount, getVerticesIterator, isConnected, remove, removeEdges, removeGraphAddEdgeListener, removeGraphAddVertexListener, removeGraphRemoveEdgeListener, removeGraphRemoveVertexListener, removeListener, setGraphFactory, setTraversal, traverse |
Field Detail |
---|
public java.util.HashMap EdgeDistros
Constructor Detail |
---|
public DistributionGraph()
Method Detail |
---|
public void setEdgeDistro(salvo.jesus.graph.Edge e, Distribution d)
e
- The edge to use as the map key.d
- The distribution to use as the map value.public Distribution getEdgeDistro(salvo.jesus.graph.Edge e)
e
- The key edge.
Distribution
public void removeEdge(salvo.jesus.graph.Edge edge) throws java.lang.Exception
removeEdge
in interface salvo.jesus.graph.Graph
removeEdge
in class salvo.jesus.graph.GraphImpl
edge
- The edge to remove.
java.lang.Exception
public java.lang.String toString()
toString
in class salvo.jesus.graph.GraphImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |