org.apache.commons.graph.domain.basic
Class WeightedGraphWrapper

java.lang.Object
  extended byorg.apache.commons.graph.domain.basic.GraphWrapper
      extended byorg.apache.commons.graph.domain.basic.WeightedGraphWrapper
All Implemented Interfaces:
Graph, WeightedGraph

public class WeightedGraphWrapper
extends GraphWrapper
implements WeightedGraph

Description of the Class


Field Summary
private  java.util.Map weights
           
 
Fields inherited from class org.apache.commons.graph.domain.basic.GraphWrapper
 
Constructor Summary
WeightedGraphWrapper(Graph graph)
          Constructor for the WeightedGraphWrapper object
 
Method Summary
 double getWeight(Edge e)
          Gets the weight attribute of the WeightedGraphWrapper object
 void setWeight(Edge e, double weight)
          Sets the weight attribute of the WeightedGraphWrapper object
 
Methods inherited from class org.apache.commons.graph.domain.basic.GraphWrapper
getEdges, getEdges, getVertices, getVertices, setGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.graph.Graph
getEdges, getEdges, getVertices, getVertices
 

Field Detail

weights

private java.util.Map weights
Constructor Detail

WeightedGraphWrapper

public WeightedGraphWrapper(Graph graph)
Constructor for the WeightedGraphWrapper object

Parameters:
graph -
Method Detail

getWeight

public double getWeight(Edge e)
Gets the weight attribute of the WeightedGraphWrapper object

Specified by:
getWeight in interface WeightedGraph

setWeight

public void setWeight(Edge e,
                      double weight)
Sets the weight attribute of the WeightedGraphWrapper object