T - typepublic class Graph<T> extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
Graph() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(T from,
T to) |
void |
addEdges(T from,
Set<T> to) |
Graph<T> |
clone() |
Set<T> |
getElements() |
Graph<T> |
getInverse() |
Set<T> |
getReachableSuccessors(T fromNode) |
Set<T> |
getSuccessors(T node) |
boolean |
isReachableSuccessor(T fromNode,
T toNode) |
void |
removeElements(Set<T> elements) |
String |
toString() |
void |
transitivelyClose()
Transitive close.
|
Copyright © 2020. All rights reserved.