V - the graph vertex typeE - the graph edge typepublic class SimpleWeightedGraph<V,E> extends SimpleGraph<V,E>
DEFAULT_EDGE_WEIGHT| Constructor and Description |
|---|
SimpleWeightedGraph(Class<? extends E> edgeClass)
Creates a new simple weighted graph.
|
SimpleWeightedGraph(Supplier<V> vertexSupplier,
Supplier<E> edgeSupplier)
Creates a new simple weighted graph.
|
| Modifier and Type | Method and Description |
|---|---|
static <V,E> GraphBuilder<V,E,? extends SimpleWeightedGraph<V,E>> |
createBuilder(Class<? extends E> edgeClass)
Create a builder for this kind of graph.
|
static <V,E> GraphBuilder<V,E,? extends SimpleWeightedGraph<V,E>> |
createBuilder(Supplier<E> edgeSupplier)
Create a builder for this kind of graph.
|
addEdge, addEdge, addVertex, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeSource, getEdgeSupplier, getEdgeTarget, getEdgeWeight, getType, getVertexSupplier, incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSupplier, setEdgeWeight, setVertexSupplier, vertexSetassertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSetsfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsEdge, removeAllEdges, removeAllEdges, removeAllVertices, setEdgeWeightpublic SimpleWeightedGraph(Class<? extends E> edgeClass)
edgeClass - class on which to base the edge supplierpublic static <V,E> GraphBuilder<V,E,? extends SimpleWeightedGraph<V,E>> createBuilder(Class<? extends E> edgeClass)
V - the graph vertex typeE - the graph edge typeedgeClass - class on which to base factory for edgespublic static <V,E> GraphBuilder<V,E,? extends SimpleWeightedGraph<V,E>> createBuilder(Supplier<E> edgeSupplier)
V - the graph vertex typeE - the graph edge typeedgeSupplier - the edge supplierCopyright © 2019. All rights reserved.