V - the graph vertex typeE - the graph edge typepublic class SimpleGraph<V,E> extends AbstractBaseGraph<V,E>
DEFAULT_EDGE_WEIGHT| Constructor and Description |
|---|
SimpleGraph(Class<? extends E> edgeClass)
Creates a new simple graph.
|
SimpleGraph(EdgeFactory<V,E> ef)
Deprecated.
Use suppliers instead
|
SimpleGraph(EdgeFactory<V,E> ef,
boolean weighted)
Deprecated.
Use suppliers instead
|
SimpleGraph(Supplier<V> vertexSupplier,
Supplier<E> edgeSupplier,
boolean weighted)
Creates a new simple graph.
|
| Modifier and Type | Method and Description |
|---|---|
static <V,E> GraphBuilder<V,E,? extends SimpleGraph<V,E>> |
createBuilder(Class<? extends E> edgeClass)
Create a builder for this kind of graph.
|
static <V,E> GraphBuilder<V,E,? extends SimpleGraph<V,E>> |
createBuilder(EdgeFactory<V,E> ef)
Deprecated.
Use suppliers instead
|
static <V,E> GraphBuilder<V,E,? extends SimpleGraph<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, vertexSetassertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSetsfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsEdge, removeAllEdges, removeAllEdges, removeAllVerticespublic SimpleGraph(Class<? extends E> edgeClass)
edgeClass - class on which to base the edge supplierpublic SimpleGraph(Supplier<V> vertexSupplier, Supplier<E> edgeSupplier, boolean weighted)
vertexSupplier - the vertex supplier, can be nulledgeSupplier - the edge supplier, can be nullweighted - whether the graph is weighted or not@Deprecated public SimpleGraph(EdgeFactory<V,E> ef, boolean weighted)
weighted - if true the graph supports edge weightsef - the edge factory of the new graph.@Deprecated public SimpleGraph(EdgeFactory<V,E> ef)
ef - the edge factory of the new graph.public static <V,E> GraphBuilder<V,E,? extends SimpleGraph<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 SimpleGraph<V,E>> createBuilder(Supplier<E> edgeSupplier)
V - the graph vertex typeE - the graph edge typeedgeSupplier - the edge supplier of the new graph@Deprecated public static <V,E> GraphBuilder<V,E,? extends SimpleGraph<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.