public class ListDG extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ListDG.Edge |
| Constructor and Description |
|---|
ListDG(List vexs,
List<ListDG.Edge> edges) |
| Modifier and Type | Method and Description |
|---|---|
void |
BFS() |
void |
DFS() |
void |
print() |
boolean |
topologicalSort() |
boolean |
topologicalSort(Object[] tops) |
public ListDG(List vexs, List<ListDG.Edge> edges)
public void DFS()
public void BFS()
public void print()
public boolean topologicalSort()
public boolean topologicalSort(Object[] tops)
Copyright © 2013–2018 Alibaba Group. All rights reserved.