public class Graphs extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Graphs.GraphBuilder<V,E,G extends org.jgrapht.Graph<V,E>> |
static class |
Graphs.WithGraphBuilder<V,E,G extends org.jgrapht.Graph<V,E>> |
| Constructor and Description |
|---|
Graphs() |
| Modifier and Type | Method and Description |
|---|---|
static <V> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge>> |
directedGraph() |
static <V,E> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,E>> |
directedGraph(Class<? extends E> edgeClass) |
static <V,E> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,E>> |
directedGraph(Class<V> vertexClass,
Class<? extends E> edgeClass) |
static <V> Supplier<Graphs.GraphBuilder<V,org.jgrapht.graph.DefaultEdge,org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge>>> |
directedGraphBuilder() |
static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,org.jgrapht.graph.DefaultEdge>> |
directedMultiEdgeGraph() |
static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,E>> |
directedMultiEdgeGraph(Class<? extends E> edgeClass) |
static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,E>> |
directedMultiEdgeGraph(Class<V> vertexClass,
Class<? extends E> edgeClass) |
static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,org.jgrapht.graph.DefaultEdge>> |
directedPseudoGraph() |
static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,E>> |
directedPseudoGraph(Class<? extends E> edgeClass) |
static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,E>> |
directedPseudoGraph(Class<V> vertexClass,
Class<? extends E> edgeClass) |
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<Graphs.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,E,G extends org.jgrapht.Graph<V,E>> Graphs.WithGraphBuilder<V,E,G> with(Supplier<Graphs.GraphBuilder<V,E,G>> graphSupplier)
public static <V,E,G extends org.jgrapht.Graph<V,E>> Supplier<Graphs.GraphBuilder<V,E,G>> graphBuilder(Supplier<G> graphSupplier)
public static <V> Supplier<Graphs.GraphBuilder<V,org.jgrapht.graph.DefaultEdge,org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge>>> directedGraphBuilder()
public static <V> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,org.jgrapht.graph.DefaultEdge>> directedGraph()
public static <V,E> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,E>> directedGraph(Class<? extends E> edgeClass)
public static <V,E> Supplier<org.jgrapht.graph.DefaultDirectedGraph<V,E>> directedGraph(Class<V> vertexClass, Class<? extends E> edgeClass)
public static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,org.jgrapht.graph.DefaultEdge>> directedMultiEdgeGraph()
public static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,E>> directedMultiEdgeGraph(Class<? extends E> edgeClass)
public static <V,E> Supplier<org.jgrapht.graph.DirectedMultigraph<V,E>> directedMultiEdgeGraph(Class<V> vertexClass, Class<? extends E> edgeClass)
public static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,org.jgrapht.graph.DefaultEdge>> directedPseudoGraph()
public static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,E>> directedPseudoGraph(Class<? extends E> edgeClass)
public static <V,E> Supplier<org.jgrapht.graph.DirectedPseudograph<V,E>> directedPseudoGraph(Class<V> vertexClass, Class<? extends E> edgeClass)
public static <V> boolean hasPath(org.jgrapht.graph.DefaultDirectedGraph<V,?> graph,
V from,
V to)
Copyright © 2022. All rights reserved.