public class DiGraph<V,E> extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DiGraph.Edge<V,E> |
protected static class |
DiGraph.Node<V,E> |
| Constructor and Description |
|---|
DiGraph() |
| Modifier and Type | Method and Description |
|---|---|
int |
degree(V n) |
void |
delete(V n) |
Optional<E> |
getEdge(V s,
V t) |
void |
impode(V n,
E edge) |
int |
inDegree(V n) |
protected DiGraph.Node<V,E> |
newNode(V s) |
DiGraph.Node<V,E> |
nodeOf(V s) |
Set<V> |
nodes() |
Set<V> |
predecessors(V n) |
void |
putEdgeValue(V s,
V t,
E e) |
E |
removeEdge(V s,
V t) |
Set<V> |
successors(V n) |
Copyright © 2024 The Apache Software Foundation. All rights reserved.