org.javanetworkanalyzer.model
Class WeightedPseudoG<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.Pseudograph<V,E>
              extended by org.javanetworkanalyzer.model.PseudoG<V,E>
                  extended by org.javanetworkanalyzer.model.WeightedPseudoG<V,E>
All Implemented Interfaces:
Serializable, Cloneable, KeyedGraph<V,E>, UndirectedG<V,E>, WeightedKeyedGraph<V,E>, org.jgrapht.Graph<V,E>, org.jgrapht.UndirectedGraph<V,E>, org.jgrapht.WeightedGraph<V,E>

public class WeightedPseudoG<V extends VId,E extends Edge>
extends PseudoG<V,E>
implements WeightedKeyedGraph<V,E>

A keyed weighted pseudograph.

Author:
Adam Gouge
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jgrapht.WeightedGraph
DEFAULT_EDGE_WEIGHT
 
Constructor Summary
WeightedPseudoG(Class<? extends V> vertexClass, Class<? extends E> edgeClass)
          Creates a new weighted pseudograph.
WeightedPseudoG(Class<? extends V> vertexClass, org.jgrapht.EdgeFactory<V,E> ef)
          Creates a new weighted pseudograph with the specified edge factory.
 
Method Summary
 void setEdgeWeight(E e, double weight)
           
 
Methods inherited from class org.javanetworkanalyzer.model.PseudoG
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.UndirectedGraph
degreeOf
 

Constructor Detail

WeightedPseudoG

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

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

WeightedPseudoG

public WeightedPseudoG(Class<? extends V> vertexClass,
                       org.jgrapht.EdgeFactory<V,E> ef)
Creates a new 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.