dc.graph.js icon indicating copy to clipboard operation
dc.graph.js copied to clipboard

Rendering of nested subgraphs fails.

Open OlegJakushkin opened this issue 5 years ago • 1 comments

Example graph:

digraph D {

  subgraph cluster_p {
    label = "Parent";

    subgraph cluster_c1 {
      label = "Child one";
      a;

      subgraph cluster_gc_1 {
        label = "Grand-Child one";
         b;
      }
      subgraph cluster_gc_2 {
        label = "Grand-Child two";
          c;
          d;
		  c->d;
      }

    }

    subgraph cluster_c2 {
      label = "Child two";
      e;
    }
  }
} 

Application example: Simple graph viewer sample

How it renders in Viz.JS : image

Errors we get in Simple graph viewer sample (and it does not render data correctly): image

Code context image

OlegJakushkin avatar Apr 03 '20 09:04 OlegJakushkin

Hi @OlegJakushkin, thanks for the report and the example input!

I can reproduce this. It looks like it should be supported, but clearly something is going wrong.

I'll try to take a look sometime in the next week.

gordonwoodhull avatar Apr 03 '20 10:04 gordonwoodhull