|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jetbrains.kotlin.utils.DFS
public class DFS
| Nested Class Summary | |
|---|---|
static class |
DFS.AbstractNodeHandler<N,R>
|
static class |
DFS.CollectingNodeHandler<N,R,C extends java.lang.Iterable<R>>
|
static interface |
DFS.Neighbors<N>
|
static interface |
DFS.NodeHandler<N,R>
|
static class |
DFS.NodeHandlerWithListResult<N,R>
|
static class |
DFS.TopologicalOrder<N>
|
static interface |
DFS.Visited<N>
|
static class |
DFS.VisitedWithSet<N>
|
| Constructor Summary | |
|---|---|
DFS()
|
|
| Method Summary | ||
|---|---|---|
static
|
dfs(java.util.Collection<N> nodes,
DFS.Neighbors<N> neighbors,
DFS.NodeHandler<N,R> handler)
|
|
static
|
dfs(java.util.Collection<N> nodes,
DFS.Neighbors<N> neighbors,
DFS.Visited<N> visited,
DFS.NodeHandler<N,R> handler)
|
|
static
|
dfsFromNode(N node,
DFS.Neighbors<N> neighbors,
DFS.Visited<N> visited)
|
|
static
|
dfsFromNode(N node,
DFS.Neighbors<N> neighbors,
DFS.Visited<N> visited,
DFS.NodeHandler<N,R> handler)
|
|
static
|
topologicalOrder(java.lang.Iterable<N> nodes,
DFS.Neighbors<N> neighbors)
|
|
static
|
topologicalOrder(java.lang.Iterable<N> nodes,
DFS.Neighbors<N> neighbors,
DFS.Visited<N> visited)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DFS()
| Method Detail |
|---|
public static <N,R> R dfs(@NotNull
java.util.Collection<N> nodes,
@NotNull
DFS.Neighbors<N> neighbors,
@NotNull
DFS.Visited<N> visited,
@NotNull
DFS.NodeHandler<N,R> handler)
public static <N,R> R dfs(@NotNull
java.util.Collection<N> nodes,
@NotNull
DFS.Neighbors<N> neighbors,
@NotNull
DFS.NodeHandler<N,R> handler)
public static <N,R> R dfsFromNode(@NotNull
N node,
@NotNull
DFS.Neighbors<N> neighbors,
@NotNull
DFS.Visited<N> visited,
@NotNull
DFS.NodeHandler<N,R> handler)
public static <N> void dfsFromNode(@NotNull
N node,
@NotNull
DFS.Neighbors<N> neighbors,
@NotNull
DFS.Visited<N> visited)
public static <N> java.util.List<N> topologicalOrder(@NotNull
java.lang.Iterable<N> nodes,
@NotNull
DFS.Neighbors<N> neighbors,
@NotNull
DFS.Visited<N> visited)
public static <N> java.util.List<N> topologicalOrder(@NotNull
java.lang.Iterable<N> nodes,
@NotNull
DFS.Neighbors<N> neighbors)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||