Skip Menu |

This queue is for tickets about the Graph-Easy CPAN distribution.

Report information
The Basics
Id: 37566
Status: open
Worked: 5 min
Priority: 0/
Queue: Graph-Easy

People
Owner: TELS [...] cpan.org
Requestors: saurabh [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.63
Fixed in: (no value)



Subject: Graphviz (v2.16) output broken
fcc.txt is the text input. graph-easy fcc.txt --html gives fcc.html which looks great. graph-easy fcc.txt --png gives fcc.png which doesnt. This command also emits a warning which I'm guessing is from the graphviz renderer: < Warning: gvrender_set_style: unsupported style none - ignoring Show quoted text
>
From my trials it seems this will happen with simpler input too. With neato etc as the renderer, the png is different but still incorrect. The main problems as I can see are (1) random edge hookups (2) boxes around nodes (3) overlaps (not here but with neato). I apologize if I'm doing something horribly wrong.
Subject: fcc.txt
# For use with graph-easy, eg. graph-easy <file.txt> --html > <file.html> # Note: .txt extension is important # Edge labels align right edge { align: right; } # Edge classes # South, 0 starts edge at bottom left of node edge.alw { label: always; start: south, 0; end: west; } edge.opt { label: optional; style: dashed; start: south, 0; end: west; } edge.inv { style: invisible; start: east; } # Node classes node.attr { borderstyle: dashed; } # Syntax: Node (nodeattr)? (Edge (edgeattr)? Node (nodeattr)?)* # Offset is ints denoting (right, down) from origin in "node extent" units [ FC ] { label: LabelFC; } -- { class: alw; } [ SM ] { label: LabelSM; origin: FC; offset: 1, 2; } [ FC ] -- { class: opt; } [ SSM ] { label: LabelSSM; fill: cyan; origin: FC; offset: 2, 6; } [ FC ] -- { class: alw; } [ VM ] { label: LabelVM; origin: FC; offset: 1, 12; }
Subject: fcc.html
Untitled graph LabelFC   always     LabelSM             optional LabelSSM         always   LabelVM
Subject: fcc.png
Download fcc.png
image/png 2.3k
fcc.png
Subject: Re: [rt.cpan.org #37566] Graphviz (v2.16) output broken
Date: Wed, 9 Jul 2008 18:56:09 +0200
To: bug-Graph-Easy [...] rt.cpan.org
From: Tels <nospam-abuse [...] bloodgate.com>
Moin, On Wednesday 09 July 2008 18:47:47 C Khan via RT wrote: Show quoted text
> Wed Jul 09 12:47:43 2008: Request 37566 was acted upon. > Transaction: Ticket created by chengiz > Queue: Graph-Easy > Subject: Graphviz (v2.16) output broken > Broken in: 0.63 > Severity: Important > Owner: Nobody > Requestors: saurabh@hotmail.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=37566 > > > > fcc.txt is the text input. > graph-easy fcc.txt --html gives fcc.html which looks great. > graph-easy fcc.txt --png gives fcc.png which doesnt. This command > also emits a warning which I'm guessing is from the graphviz > renderer: < > Warning: gvrender_set_style: unsupported style none - ignoring >
> >From my trials it seems this will happen with simpler input too. > > With
> > neato etc as the renderer, the png is different but still incorrect. > The main problems as I can see are (1) random edge hookups (2) boxes > around nodes (3) overlaps (not here but with neato). > > I apologize if I'm doing something horribly wrong.
Not at all :) Thank you for your report. I have not tried it yet, but from the input text I see you are using relatively-to-another positioned nodes. graphviz does not support such a feature at all. Or at least it doesn#t without some deep trickery. Graph::Easy tries to build HTML-like labels for nodes to emulate the placement, but this is a relatively new feature and might be buggy and/or incomplete. Also, graphviz has some strange ideas about routing edges when doing such layouts - it does for instane have not any way to route edges through the "empty" parts of HTML-nodes. In any event, I have a look and see if I can improve the output. All the best, tels -- Signed on Wed Jul 9 18:53:55 2008 with key 0x93B84C15. Get one of my photo posters: http://bloodgate.com/posters PGP key on http://bloodgate.com/tels.asc or per email. "It's the same old story; boy meets beer, boy drinks beer... boy gets another beer." -- Cheers
Download signature.asc
application/pgp-signature 481b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #37566] Graphviz (v2.16) output broken
Date: Wed, 9 Jul 2008 19:14:58 +0200
To: bug-Graph-Easy [...] rt.cpan.org
From: Tels <nospam-abuse [...] bloodgate.com>
Moin, I managed to get rid of the warning by changing "style=none" to "shape=none". (Not sure if it now will work with older graphviz versions as I cannot test it). Note that the layout is as "expected", as grapvhiv is basically rendering what Graph::Easy told it, but does not route the edges through the empty parts and keeps the artificially inserted "join" node (the dot on the right side) outside of the node. I am afraid I can't do much about this :( All the best, Tels -- Signed on Wed Jul 9 19:13:18 2008 with key 0x93B84C15. View my photo gallery: http://bloodgate.com/photos PGP key on http://bloodgate.com/tels.asc or per email. "To get something done, a committee should consist of no more than three persons, two of them absent." -- Unknown
Download signature.asc
application/pgp-signature 481b

Message body not shown because it is not plain text.

On Wed Jul 09 13:15:44 2008, nospam-abuse@bloodgate.com wrote: Show quoted text
> Moin, > > I managed to get rid of the warning by changing "style=none" > to "shape=none". (Not sure if it now will work with older graphviz > versions as I cannot test it). > > Note that the layout is as "expected", as grapvhiv is basically > rendering what Graph::Easy told it, but does not route the edges > through the empty parts and keeps the artificially inserted "join" node > (the dot on the right side) outside of the node. > > I am afraid I can't do much about this :(
Looking into this further, I tried to render SVG output, and then convert the result into PNG. This looks like the attached file. I am not sure if this is what you expected, tho :) While doing this, I found a bug in the As_svg part, it was wrongly emmiting start/end attributes for the edge classes. Fixed it now. Thank you for your report! I am gonna close this now, if you need further help or have questions, please just reopen this bug by replying to this email :)
See last message :)
From: saurabh [...] hotmail.com
Show quoted text
> Looking into this further, I tried to render SVG output, and then > convert the result into PNG. This looks like the attached file. I am not > sure if this is what you expected, tho :) >
There's no attached file that you mention. Thanks.