org._3pq.jgrapht.graph

Class SimpleWeightedGraph

Implemented Interfaces:
Cloneable, Graph, Serializable, UndirectedGraph, WeightedGraph

public class SimpleWeightedGraph
extends SimpleGraph
implements WeightedGraph

A simple weighted graph. A simple weighted graph is a simple graph for which edges are assigned weights.

Constructor Summary

SimpleWeightedGraph()
Creates a new simple weighted graph.
SimpleWeightedGraph(EdgeFactory ef)
Creates a new simple weighted graph with the specified edge factory.

Method Summary

Methods inherited from class org._3pq.jgrapht.graph.AbstractBaseGraph

addEdge, addEdge, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, inDegreeOf, incomingEdgesOf, isAllowingLoops, isAllowingMultipleEdges, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeListFactory, vertexSet

Methods inherited from class org._3pq.jgrapht.graph.AbstractGraph

addAllEdges, addAllVertices, assertVertexExist, containsEdge, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets

Constructor Details

SimpleWeightedGraph

public SimpleWeightedGraph()
Creates a new simple weighted graph.

SimpleWeightedGraph

public SimpleWeightedGraph(EdgeFactory ef)
Creates a new simple weighted graph with the specified edge factory.
Parameters:
ef - the edge factory of the new graph.