org.javanetworkanalyzer.model
Class DirectedWeightedPseudoG<V extends VId,E extends Edge>

java.lang.Object
  extended by org.jgrapht.graph.AbstractGraph<V,E>
      extended by org.jgrapht.graph.AbstractBaseGraph<V,E>
          extended by org.jgrapht.graph.DirectedPseudograph<V,E>
              extended by org.javanetworkanalyzer.model.DirectedPseudoG<V,E>
                  extended by org.javanetworkanalyzer.model.DirectedWeightedPseudoG<V,E>
All Implemented Interfaces:
Serializable, Cloneable, DirectedG<V,E>, KeyedGraph<V,E>, WeightedKeyedGraph<V,E>, org.jgrapht.DirectedGraph<V,E>, org.jgrapht.Graph<V,E>, org.jgrapht.WeightedGraph<V,E>

public class DirectedWeightedPseudoG<V extends VId,E extends Edge>
extends DirectedPseudoG<V,E>
implements WeightedKeyedGraph<V,E>

A keyed directed weighted pseudograph.

Author:
Adam Gouge
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jgrapht.WeightedGraph
DEFAULT_EDGE_WEIGHT
 
Constructor Summary
DirectedWeightedPseudoG(Class<? extends V> vertexClass, Class<? extends E> edgeClass)
          Creates a new directed weighted pseudograph.
DirectedWeightedPseudoG(Class<? extends V> vertexClass, org.jgrapht.EdgeFactory<V,E> ef)
          Creates a new directed weighted pseudograph with the specified edge factory.
 
Method Summary
 void setEdgeWeight(E e, double weight)
           
 
Methods inherited from class org.javanetworkanalyzer.model.DirectedPseudoG
addEdge, addEdge, addVertex, getVertex
 
Methods inherited from class org.jgrapht.graph.AbstractBaseGraph
addEdge, addEdge, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, incomingEdgesOf, inDegreeOf, isAllowingLoops, isAllowingMultipleEdges, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSetFactory, vertexSet
 
Methods inherited from class org.jgrapht.graph.AbstractGraph
assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.javanetworkanalyzer.model.KeyedGraph
addEdge, addEdge, addVertex, getVertex
 
Methods inherited from interface org.jgrapht.Graph
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
 
Methods inherited from interface org.jgrapht.DirectedGraph
incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf
 

Constructor Detail

DirectedWeightedPseudoG

public DirectedWeightedPseudoG(Class<? extends V> vertexClass,
                               Class<? extends E> edgeClass)
Creates a new directed weighted pseudograph.

Parameters:
edgeClass - class on which to base factory for edges

DirectedWeightedPseudoG

public DirectedWeightedPseudoG(Class<? extends V> vertexClass,
                               org.jgrapht.EdgeFactory<V,E> ef)
Creates a new directed weighted pseudograph with the specified edge factory.

Parameters:
ef - the edge factory of the new graph.
Method Detail

setEdgeWeight

public void setEdgeWeight(E e,
                          double weight)
Specified by:
setEdgeWeight in interface org.jgrapht.WeightedGraph<V extends VId,E extends Edge>
Overrides:
setEdgeWeight in class org.jgrapht.graph.AbstractBaseGraph<V extends VId,E extends Edge>


Copyright © 2014. All Rights Reserved.