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
|
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 vertexCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.