Is there any way to represent connections between

2019-08-06 09:56发布

问题:

I have a java program and i am parsing a json file. Because there are some dependencies between the json objects (they are procedures that must be executed so some of them depends on others). I want to make a graph so i can represent this. Is there any known way? I tryed mxgraph (jgraph) but i cannot make the representation.

Here is a simple json format

 {
  "blueprint": 
    {
     "1" : { "depends" : null },
     "2" : { "depends" : "1" },
     "3" : { "depends" : { "2" , "1"} },
    }
  }