idekerlab / dot-app

Cytoscape application for exporting to .dot file format
GNU General Public License v3.0
7 stars 4 forks source link

Edges not drawn when nested in subgraph #16

Closed lemmy closed 6 years ago

lemmy commented 6 years ago

Both inputs below render correctly with dot or http://www.webgraphviz.com/. However, Cytospace (3.5.1 with 0.9.4) only shows edges for the second one when the edges are not part of the subgraph (see screenshots below).

digraph DiskGraph {
  subgraph cluster_graph {
    A [style = filled, label="x = 0"]
    B [label="x = 1"];
    C [label="x = 2"];
    A -> B [label="",color="black",fontcolor="black"];
    B -> C [label="",color="black",fontcolor="black"];
    {rank = same; A;}
    {rank = same; B;}
    {rank = same; C;}
  }
}

inside

digraph DiskGraph {
  subgraph cluster_graph {
    A [style = filled, label="x = 0"]
    B [label="x = 1"];
    C [label="x = 2"];
    {rank = same; A;}
    {rank = same; B;}
    {rank = same; C;}
  }
  A -> B [label="",color="black",fontcolor="black"];
  B -> C [label="",color="black",fontcolor="black"];
}

outside

bdtfitts commented 6 years ago

Fixed in 0.9.5