public class DependencyDemo extends Object
Constructor and Description |
---|
DependencyDemo() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Generate two cases, one with cycles, this is dependencies and one without.
|
static void |
test(boolean createCycles)
Test creating a directed graph, checking it for cycles and either outputting cycles detected
or topological ordering if not.
|
public static void test(boolean createCycles)
createCycles
- true - create a directed graph which contains cycles. false - create a
directed graph which does not contain any cycles.public static void main(String[] args)
args
- Ignored.Copyright © 2018. All rights reserved.