Class Graph


  • public class Graph
    extends java.lang.Object
    Graph contains Directed Acyclic Graph
    • Constructor Summary

      Constructors 
      Constructor Description
      Graph​(com.fasterxml.jackson.databind.JsonNode jsonGraph)
      Graph constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.Integer,​java.util.Set<java.lang.String>> getGraphWithLongestPaths()
      create level stack: the longest path for different roots
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Graph

        public Graph​(com.fasterxml.jackson.databind.JsonNode jsonGraph)
        Graph constructor
        Parameters:
        jsonGraph - { "ID027" : { }, "ID028" : { "_up" : [ "ID027" ] }, "ID029" : { "_up" : [ "ID028" ] }}
    • Method Detail

      • getGraphWithLongestPaths

        public java.util.Map<java.lang.Integer,​java.util.Set<java.lang.String>> getGraphWithLongestPaths()
        create level stack: the longest path for different roots
        Returns:
        Map