Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002218graphvizDotpublic2012-04-15 12:242012-05-05 19:07
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformLinuxOSDebianOS Version2.6.32-5
Summary0002218: edge double cross
// file:
// Edge double cross: edge 2->3 cross two times edge 3->2
digraph cross {
        1 -> 2;
        2:s -> 3:n;
        3 -> 2 [label="XX"];
        3 -> 0;
Steps To Reproduce$ dot -Tx11
Additional Information$ uname -a
Linux gini 2.6.32-5-686 0000001 SMP Fri Sep 9 20:51:05 UTC 2011 i686 GNU/Linux

$ dpkg-query -S $(which dot)
graphviz: /usr/bin/dot

$ $ dpkg-query -s graphviz
Package: graphviz
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 940
Maintainer: David Claughton <[email protected]>
Architecture: i386
Version: 2.26.3-5
Depends: libc6 (>= 2.7), libcdt4, libcgraph5, libexpat1 (>= 1.95.8), libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg), libgraph4, libgvc5, libgvpr1, libx11-6, libxaw7, libxmu6, libxt6
Recommends: ttf-liberation
Suggests: gsfonts, graphviz-doc

$ dot -V
dot - graphviz version 2.26.3 (20100126.1600)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0000223)
erg (administrator)
2012-04-16 12:27

This is a case where the use of heavyweight edge labels can distort a layout. If you upgrade to 2.29 or later, you can replace label=XX with xlabel=XX which will help some.
User avatar (0000228)
Abyssoft (reporter)
2012-04-23 12:48

While xlable is nice improvement adding labelloc for edges would be rather beneficial. To help keep code clean and prevent confusion

EdgeLabelLoc : for edges should be from 2 values
Deg (double [mod 360]): deg of Rotation where center of edge to head is defined as 0 deg rotation is clockwise
Dist (double [in points]) : distance from center

HeadLabelLoc : edge to head is defined as 0 deg rotation is clockwise
TailLabelLoc : edge to tail is defined as 0 deg rotation is clockwise

*** this note can be moved to a new Feature request if need be ***
User avatar (0000229)
erg (administrator)
2012-04-23 13:41

I'm not sure what you are suggesting. Could you give an example or more details? Thanks.
User avatar (0000230)
Abyssoft (reporter)
2012-04-23 14:50

given A->B the line running from the center of the Edge AB to the Head point would be treated as 0 deg. And given label="ABC"

By default the label is then treated as a bound box with the center of the bottom rotated to be aligned with edge and placed a default(yet to be determined) distance from the edge.

Using the EdgeLabelLoc directive with the parameters "180.0, 2.0" would rotate the bound box 180 degrees around the center point of the edge and then place it 2pts away.

This would result in the label being placed on the Left side and perpendicular to the edge "CBA" 2pt away from the edge.

The distance Parameter can be negative

I'll attach an image with graphical representation of this idea later today or tomorrow.
User avatar (0000231)
Abyssoft (reporter)
2012-04-24 01:18

It will be tomorrow evening at earliest before I can post image
User avatar (0000232)
Abyssoft (reporter)
2012-04-25 01:41

Still Working on Specs, this will take a little time I am reviewing all documentation so That I can bring spec into alignment with previous practices.
ETD ~ May 1
User avatar (0000243)
Abyssoft (reporter)
2012-05-05 19:07

Ok this will take longer to spec then I ex(s)pected.

not sure how long this will take. but I will plug away at it.

- Issue History
Date Modified Username Field Change
2012-04-15 12:24 gini New Issue
2012-04-16 12:27 erg Note Added: 0000223
2012-04-23 12:48 Abyssoft Note Added: 0000228
2012-04-23 13:41 erg Note Added: 0000229
2012-04-23 14:50 Abyssoft Note Added: 0000230
2012-04-24 01:18 Abyssoft Note Added: 0000231
2012-04-25 01:41 Abyssoft Note Added: 0000232
2012-05-05 19:07 Abyssoft Note Added: 0000243

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