Class DependencyDemo

  • public class DependencyDemo
    extends Object
    This class is a demonstration program for creating a dependency chart, directed graph, then locating and outputting any implicit loops, cycles.
    • Constructor Detail

      • DependencyDemo

        public DependencyDemo()
    • Method Detail

      • test

        public static void test​(boolean createCycles)
        Test creating a directed graph, checking it for cycles and either outputting cycles detected or topological ordering if not.
        createCycles - true - create a directed graph which contains cycles. false - create a directed graph which does not contain any cycles.
      • main

        public static void main​(String[] args)
        Generate two cases, one with cycles, this is dependencies and one without.
        args - Ignored.