V
- the graph vertex typeE
- the graph edge typepublic class WeightedPseudograph<V,E> extends Pseudograph<V,E>
DEFAULT_EDGE_WEIGHT
Constructor and Description |
---|
WeightedPseudograph(Class<? extends E> edgeClass)
Creates a new weighted graph.
|
WeightedPseudograph(EdgeFactory<V,E> ef)
Deprecated.
Use suppliers instead
|
WeightedPseudograph(Supplier<V> vertexSupplier,
Supplier<E> edgeSupplier)
Creates a new weighted graph.
|
Modifier and Type | Method and Description |
---|---|
static <V,E> GraphBuilder<V,E,? extends WeightedPseudograph<V,E>> |
createBuilder(Class<? extends E> edgeClass)
Create a builder for this kind of graph.
|
static <V,E> GraphBuilder<V,E,? extends WeightedPseudograph<V,E>> |
createBuilder(EdgeFactory<V,E> ef)
Deprecated.
Use suppliers instead
|
static <V,E> GraphBuilder<V,E,? extends WeightedPseudograph<V,E>> |
createBuilder(Supplier<E> edgeSupplier)
Create a builder for this kind of graph.
|
addEdge, addEdge, addVertex, addVertex, clone, containsEdge, containsVertex, createIntrusiveEdgesSpecifics, createSpecifics, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeSupplier, getEdgeTarget, getEdgeWeight, getType, getVertexSupplier, incomingEdgesOf, inDegreeOf, isAllowingLoops, isAllowingMultipleEdges, isDirected, isWeighted, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSupplier, setEdgeWeight, setVertexSupplier, vertexSet
assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets
finalize, getClass, notify, notifyAll, wait, wait, wait
containsEdge, removeAllEdges, removeAllEdges, removeAllVertices
public WeightedPseudograph(Class<? extends E> edgeClass)
edgeClass
- class on which to base the edge supplierpublic WeightedPseudograph(Supplier<V> vertexSupplier, Supplier<E> edgeSupplier)
vertexSupplier
- the vertex supplier, can be nulledgeSupplier
- the edge supplier, can be null@Deprecated public WeightedPseudograph(EdgeFactory<V,E> ef)
ef
- the edge factory of the new graph.public static <V,E> GraphBuilder<V,E,? extends WeightedPseudograph<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 WeightedPseudograph<V,E>> createBuilder(Supplier<E> edgeSupplier)
V
- the graph vertex typeE
- the graph edge typeedgeSupplier
- the edge supplier@Deprecated public static <V,E> GraphBuilder<V,E,? extends WeightedPseudograph<V,E>> createBuilder(EdgeFactory<V,E> ef)
V
- the graph vertex typeE
- the graph edge typeef
- the edge factory of the new graphCopyright © 2018. All rights reserved.