public class Graphs extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Graphs.Directed |
static class |
Graphs.Multi |
static class |
Graphs.Pseudo |
| Constructor and Description |
|---|
Graphs() |
| Modifier and Type | Method and Description |
|---|---|
static <V> org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge> |
directedGraph()
Deprecated.
|
static <V,E> org.jgrapht.graph.DefaultDirectedGraph<V,E> |
directedGraph(Class<? extends E> edgeClass)
Deprecated.
|
static <V> Supplier<GraphBuilder<V,org.jgrapht.graph.DefaultEdge,org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge>>> |
directedGraphBuilder() |
static <V> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge>> |
directedGraphFactory()
Deprecated.
|
static <V,E> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,E>> |
directedGraphFactory(Class<? extends E> edgeClass)
Deprecated.
|
static <V,E> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,E>> |
directedGraphFactory(Class<V> vertexClass,
Class<? extends E> edgeClass)
Deprecated.
|
static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,org.jgrapht.graph.DefaultEdge>> |
directedMultiEdgeGraphFactory()
Deprecated.
|
static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,E>> |
directedMultiEdgeGraphFactory(Class<? extends E> edgeClass)
Deprecated.
|
static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,E>> |
directedMultiEdgeGraphFactory(Class<V> vertexClass,
Class<? extends E> edgeClass)
Deprecated.
|
static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,org.jgrapht.graph.DefaultEdge>> |
directedPseudoGraph()
Deprecated.
|
static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,E>> |
directedPseudoGraph(Class<? extends E> edgeClass)
Deprecated.
|
static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,E>> |
directedPseudoGraph(Class<V> vertexClass,
Class<? extends E> edgeClass)
Deprecated.
|
static <V,E> org.jgrapht.graph.DefaultDirectedGraph<V,E> |
filter(org.jgrapht.graph.DefaultDirectedGraph<V,E> src,
Predicate<V> filter) |
static <V,E> org.jgrapht.graph.DefaultDirectedGraph<V,E> |
filter(org.jgrapht.graph.DefaultDirectedGraph<V,E> src,
Predicate<V> filter,
Consumer<V> filteredVertexConsumer,
Consumer<E> filteredEdgeConsumer) |
static <V,E,G extends org.jgrapht.Graph<V,E>> |
graphBuilder(Supplier<G> graphSupplier) |
static <V> boolean |
hasPath(org.jgrapht.graph.DefaultDirectedGraph<V,?> graph,
V from,
V to) |
static <V> Predicate<V> |
isLeaf(org.jgrapht.graph.DefaultDirectedGraph<V,?> graph) |
static <V> Predicate<V> |
isRoot(org.jgrapht.graph.DefaultDirectedGraph<V,?> graph) |
static <V,E> Collection<VerticesAndEdges<V,E>> |
leavesOf(org.jgrapht.graph.DefaultDirectedGraph<V,E> src) |
static <V,E> List<? extends Loop<V,E>> |
loopsOf(org.jgrapht.graph.DefaultDirectedGraph<V,E> src) |
static <V,E> Collection<VerticesAndEdges<V,E>> |
rootsOf(org.jgrapht.graph.DefaultDirectedGraph<V,E> src) |
static <V,E,G extends org.jgrapht.Graph<V,E>> |
with(Supplier<GraphBuilder<V,E,G>> graphSupplier) |
public static <V,E> org.jgrapht.graph.DefaultDirectedGraph<V,E> filter(org.jgrapht.graph.DefaultDirectedGraph<V,E> src,
Predicate<V> filter)
public static <V,E> org.jgrapht.graph.DefaultDirectedGraph<V,E> filter(org.jgrapht.graph.DefaultDirectedGraph<V,E> src,
Predicate<V> filter,
Consumer<V> filteredVertexConsumer,
Consumer<E> filteredEdgeConsumer)
public static <V,E> Collection<VerticesAndEdges<V,E>> leavesOf(org.jgrapht.graph.DefaultDirectedGraph<V,E> src)
public static <V,E> Collection<VerticesAndEdges<V,E>> rootsOf(org.jgrapht.graph.DefaultDirectedGraph<V,E> src)
public static <V,E> List<? extends Loop<V,E>> loopsOf(org.jgrapht.graph.DefaultDirectedGraph<V,E> src)
public static <V> Predicate<V> isLeaf(org.jgrapht.graph.DefaultDirectedGraph<V,?> graph)
public static <V> Predicate<V> isRoot(org.jgrapht.graph.DefaultDirectedGraph<V,?> graph)
public static <V> boolean hasPath(org.jgrapht.graph.DefaultDirectedGraph<V,?> graph,
V from,
V to)
public static <V,E,G extends org.jgrapht.Graph<V,E>> LazyGraphBuilder<V,E,G> with(Supplier<GraphBuilder<V,E,G>> graphSupplier)
public static <V,E,G extends org.jgrapht.Graph<V,E>> Supplier<GraphBuilder<V,E,G>> graphBuilder(Supplier<G> graphSupplier)
public static <V> Supplier<GraphBuilder<V,org.jgrapht.graph.DefaultEdge,org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge>>> directedGraphBuilder()
@Deprecated public static <V> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge>> directedGraphFactory()
@Deprecated public static <V,E> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,E>> directedGraphFactory(Class<? extends E> edgeClass)
@Deprecated public static <V> org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge> directedGraph()
@Deprecated public static <V,E> org.jgrapht.graph.DefaultDirectedGraph<V,E> directedGraph(Class<? extends E> edgeClass)
@Deprecated public static <V,E> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,E>> directedGraphFactory(Class<V> vertexClass, Class<? extends E> edgeClass)
@Deprecated public static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,org.jgrapht.graph.DefaultEdge>> directedMultiEdgeGraphFactory()
@Deprecated public static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,E>> directedMultiEdgeGraphFactory(Class<V> vertexClass, Class<? extends E> edgeClass)
@Deprecated public static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,E>> directedMultiEdgeGraphFactory(Class<? extends E> edgeClass)
@Deprecated public static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,org.jgrapht.graph.DefaultEdge>> directedPseudoGraph()
@Deprecated public static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,E>> directedPseudoGraph(Class<? extends E> edgeClass)
@Deprecated public static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,E>> directedPseudoGraph(Class<V> vertexClass, Class<? extends E> edgeClass)
Copyright © 2023. All rights reserved.