public class GraphUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <V,E> List<V> |
getAllPredecessors(org.jgrapht.Graph<V,E> graph,
V vertex)
Gets all parent nodes of the vertex
|
static <V,E> List<V> |
getAllSuccessors(org.jgrapht.Graph<V,E> graph,
V vertex)
Gets all successors of the vertex
|
static <V,E> V |
getFirstPredecessor(org.jgrapht.Graph<V,E> graph,
V vertex) |
static <V,E> boolean |
hasCycle(org.jgrapht.graph.DefaultDirectedGraph<V,E> graph) |
public static <V,E> List<V> getAllSuccessors(org.jgrapht.Graph<V,E> graph, V vertex)
V
- vertex typeE
- edge typegraph
- the graphvertex
- the vertexpublic static <V,E> List<V> getAllPredecessors(org.jgrapht.Graph<V,E> graph, V vertex)
V
- vertex typeE
- edge typegraph
- the graphvertex
- the vertexpublic static <V,E> boolean hasCycle(org.jgrapht.graph.DefaultDirectedGraph<V,E> graph)
public static <V,E> V getFirstPredecessor(org.jgrapht.Graph<V,E> graph, V vertex)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.