Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002551graphvizDotpublic2015-06-05 11:042015-06-05 17:20
Reporterabstratt 
Assigned To 
PrioritynormalSeverityimportantReproducibilityalways
StatusnewResolutionopen 
PlatformPCOSLinux 32 bitsOS VersionUbuntu 14.04.2
Summary0002551: arrows only drawn if constraint = true
DescriptionIn some cases, for a non-directed graph, arrows are not rendered if the edge declares constraint = false. I'd expect constraints to be relevant only for ranking nodes in the layout, not for redenring of arrows.

I can do a few things that independently will get the arrow to show:
* remove the constraint attribute, or set it to true
* change the shape of the node from record to mrecord, or plaintext (without HTML)
* remove the use of port names in the edge

Steps To ReproduceExample:

graph car_rental {
    nodesep = "0.85"
    graph [
    ]
    node [
        shape = "record"
    ]
    edge [
        dir = "both"
    ]
    "Make":port -- "CarModel":port [
        arrowhead = "nonenone"
        arrowtail = "opennone"
        constraint = "false"
    ]

}

will not show an arrow in GraphViz 2.38, although one was expected from CarModel to Make.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.38
Attached Files

- Relationships

-  Notes
User avatar (0000947)
north (administrator)
2015-06-05 12:32

Mistakes were made. Stephen

$ dot -V
dot - graphviz version 2.39. ()
$ dot -Tpdf z.dot -o z.pdf
Warning: node Make, port port unrecognized
Warning: node CarModel, port port unrecognized
Warning: flat edge between adjacent nodes one of which has a record shape - replace records with HTML-like labels
  Edge Make -- CarModel
Error: lost Make CarModel edge
$
User avatar (0000948)
abstratt (reporter)
2015-06-05 17:20

Sorry, I tried to be helpful by reducing the test case to a minimum but I guess I introduced other issues. Here is the full source (using HTML markup and plaintext nodes):

graph car_rental {
    ranksep = "0.8"
    nodesep = "0.85"
    nojustify = "true"
    graph [
    ]
    node [
        fontsize = 12
        shape = "plaintext"
    ]
    edge [
        fontsize = 9
        dir = "both"
    ]
    "CarModel" [label=<
        <TABLE border="0" cellspacing="0" cellpadding="0" cellborder="0" port="port">
        <TR><TD><TABLE border="1" cellborder="0" CELLPADDING="3" CELLSPACING="0" ALIGN="LEFT">
        <TR><TD>CarModel</TD></TR>
    </TABLE></TD></TR><TR><TD>
    <TABLE border="1" cellborder="0"><TR><TD> </TD></TR></TABLE>
    </TD></TR>
    <TR><TD><TABLE border="1" cellborder="0"><TR><TD> </TD></TR></TABLE></TD></TR></TABLE>>];
    "Make" [label=<
        <TABLE border="0" cellspacing="0" cellpadding="0" cellborder="0" port="port">
        <TR><TD><TABLE border="1" cellborder="0" CELLPADDING="3" CELLSPACING="0" ALIGN="LEFT">
        <TR><TD>Make</TD></TR>
    </TABLE></TD></TR><TR><TD>
    <TABLE border="1" cellborder="0"><TR><TD> </TD></TR></TABLE>
    </TD></TR>
    <TR><TD><TABLE border="1" cellborder="0"><TR><TD> </TD></TR></TABLE></TD></TR></TABLE>>];
    "Make":port -- "CarModel":port [
        label = ""
        arrowhead = "nonenone"
        headlabel = ""
        arrowtail = "opennone"
        taillabel = ""
        labeldistance = "1.7"
        constraint = "false"
        style = "solid"
    ]

}

- Issue History
Date Modified Username Field Change
2015-06-05 11:04 abstratt New Issue
2015-06-05 12:32 north Note Added: 0000947
2015-06-05 17:20 abstratt Note Added: 0000948


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