Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001968graphvizDotpublic2010-10-06 14:062011-04-28 04:03
ReporterErik Eidt 
Assigned Togviz 
PrioritynormalSeveritymajorReproducibilityalways
StatusacknowledgedResolutionno change required 
PlatformOS*-*-Windows 7OS Version
Summary0001968: subgraph id used in edge does not find cluster - instead creates new node
Description



I'm trying to reference a cluster as a head or tail of an edge.



The documentation seems to indicate this is possible.



Also, see the similar sample in the gallery:
http://www.graphviz.org/Gallery/undirected/fdpclust.html [^]



When I reference the cluster by its id (e.g. cluster_A) I get a new node
cluster_A instead of a reference to the subgraph named cluster_A.



I've tried this on both these versions, same results, no joy on reference to the cluster itself
2.26.3 (201000126.1600)
2.27.20101005.0445 (20101005.0445)



I'm using dot.exe, from the command line.
Steps To Reproduce

digraph G {
    n1->n2
    subgraph cluster_A {
        n1
        n2
    }
    n3->n4
    subgraph cluster_B {
        n3
        n4
    }
    n5->cluster_B
    cluster_A->n6
}
Additional Information
Thanks!

[erg]
 This actually qualifies as a request for a new feature. At present, only fdp supports the
notion of compound graphs, where an edge can connect to a cluster.

dot provides a hack that often gives you what you want. You set compound=true. All of the
edges still go from nodes to nodes, but an edge can specify a cluster as a logical head and tail,
to the edge drawing is clipped in the appropriate way. Obviously, you need to specify which are
the nodes actually used for the edges, and it does not allow nested clusters to have such edges.

For example, for your graph, try

<CD>
digraph G {
    compound=true
    n1->n2
    subgraph cluster_A {
        n1
        n2
    }
    n3->n4
    subgraph cluster_B {
        n3
        n4
    }
    n5->n4 [lhead=cluster_B]
    n1->n6 [ltail=cluster_A]
}
</CD>
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID2049
INPUT-FILE
OUTPUT-FILEhttp://www.graphviz.org/bugs/b1049.svg [^]
STATUS-COMMENTRequest
VERSION     
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker