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 
StatusacknowledgedResolutionno change required 
PlatformOS*-*-Windows 7OS Version
Summary0001968: subgraph id used in edge does not find cluster - instead creates new node

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: [^]

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 {
    subgraph cluster_A {
    subgraph cluster_B {
Additional Information

 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

digraph G {
    subgraph cluster_A {
    subgraph cluster_B {
    n5->n4 [lhead=cluster_B]
    n1->n6 [ltail=cluster_A]
TagsNo tags attached.
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