gr.demokritos.iit.conceptualIndex.structs
Class DistributionGraph

java.lang.Object
  extended by salvo.jesus.graph.GraphImpl
      extended by salvo.jesus.graph.WeightedGraphImpl
          extended by gr.demokritos.iit.jinsect.structs.UniqueVertexGraph
              extended by gr.demokritos.iit.conceptualIndex.structs.DistributionGraph
All Implemented Interfaces:
java.io.Serializable, salvo.jesus.graph.Graph, salvo.jesus.graph.WeightedGraph

public class DistributionGraph
extends UniqueVertexGraph
implements java.io.Serializable

A graph with weighted edges mapped to distributions.

See Also:
Serialized Form

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

EdgeDistros

public java.util.HashMap EdgeDistros
The mapping between edges and distributions.

Constructor Detail

DistributionGraph

public DistributionGraph()
Creates a new instance of DistributionGraph.

Method Detail

setEdgeDistro

public void setEdgeDistro(salvo.jesus.graph.Edge e,
                          Distribution d)
Maps an edge to a distribution.

Parameters:
e - The edge to use as the map key.
d - The distribution to use as the map value.

getEdgeDistro

public Distribution getEdgeDistro(salvo.jesus.graph.Edge e)
Returns the distribution mapped to a selected edge.

Parameters:
e - The key edge.
Returns:
The corresponding distribution.
See Also:
Distribution

removeEdge

public void removeEdge(salvo.jesus.graph.Edge edge)
                throws java.lang.Exception
Removes the selected edge from the graph.

Specified by:
removeEdge in interface salvo.jesus.graph.Graph
Overrides:
removeEdge in class salvo.jesus.graph.GraphImpl
Parameters:
edge - The edge to remove.
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Returns a string representation of the distribution graph.

Overrides:
toString in class salvo.jesus.graph.GraphImpl
Returns:
The string representation, including the distribution information.