V
- the graph vertex typeE
- the graph edge typepublic class SimpleWeightedGraph<V,E> extends SimpleGraph<V,E> implements WeightedGraph<V,E>
DEFAULT_EDGE_WEIGHT
Constructor and Description |
---|
SimpleWeightedGraph(Class<? extends E> edgeClass)
Creates a new simple weighted graph.
|
SimpleWeightedGraph(EdgeFactory<V,E> ef)
Creates a new simple weighted graph with the specified edge factory.
|
Modifier and Type | Method and Description |
---|---|
static <V,E> UndirectedWeightedGraphBuilderBase<V,E,? extends SimpleWeightedGraph<V,E>,?> |
builder(Class<? extends E> edgeClass)
Create a builder for this kind of graph.
|
static <V,E> UndirectedWeightedGraphBuilderBase<V,E,? extends SimpleWeightedGraph<V,E>,?> |
builder(EdgeFactory<V,E> ef)
Create a builder for this kind of graph.
|
addEdge, addEdge, addVertex, clone, containsEdge, containsVertex, createDirectedSpecifics, createUndirectedSpecifics, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSetFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, incomingEdgesOf, inDegreeOf, isAllowingLoops, isAllowingMultipleEdges, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSetFactory, setEdgeWeight, vertexSet
assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets
finalize, getClass, notify, notifyAll, wait, wait, wait
setEdgeWeight
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
degreeOf
public SimpleWeightedGraph(EdgeFactory<V,E> ef)
ef
- the edge factory of the new graph.public static <V,E> UndirectedWeightedGraphBuilderBase<V,E,? extends SimpleWeightedGraph<V,E>,?> builder(Class<? extends E> edgeClass)
V
- the graph vertex typeE
- the graph edge typeedgeClass
- class on which to base factory for edgespublic static <V,E> UndirectedWeightedGraphBuilderBase<V,E,? extends SimpleWeightedGraph<V,E>,?> builder(EdgeFactory<V,E> ef)
V
- the graph vertex typeE
- the graph edge typeef
- the edge factory of the new graphCopyright © 2016. All rights reserved.