Trying to generate gallery sfdp graph using code provided

Hi,

I would like to generate a large graph like this;
http://www.graphviz.org/content/root
So I was trying to use the example code as it is to begin to understand how it works;
http://www.graphviz.org/Gallery/undirected/root.gv.txt
However I can't get this to work out-of-the-box.

The command I tried is
sfdp -Goverlap=prism -Tgif root.gv > root.gif
with the following error;
sfdp: graph is too large for cairo-renderer bitmaps. Scaling by 0.000220406 to fit
sfdp: failure to create cairo surface: out of memory
Segmentation fault

If I use "-Gsize=500,500" I generate a blank image.
I found adding "-Goverlap_scaling=-10 " to the command doesn't alter the error message.

I also found that this
sfdp -Goverlap=prism -Tps root.gv > root.ps
runs with out error. However the ps fails to load.

Thanks

PS:I am using Graphviz 2.26.3

Trying to generate gallery sfdp graph using code provided

On 04/08/2011 02:08 PM, Claire Donoghue wrote:
Hi

thanks for your reply.

Upon further investigation with your suggestions, I found that my
output is always blank.

Specifically when I generate a pdf, it is of size 0. And
regardless of my -Gsize parameter the output shows a blank image.

Does this sound like a bug with the version I am using?

What do you get if you use -v flag?

sfdp -Goverlap=prism -Tgif -v -Gsize=50! root.gv > root.gif

Thanks,

On 8 April 2011 14:43, Yifan Hu <[email protected]>
wrote:
On 04/08/2011 09:08 AM, [email protected]
wrote:

Hi,

I would like to generate a large graph like this;
http://www.graphviz.org/content/root
So I was trying to use the example code as it is to begin to
understand how it works;
http://www.graphviz.org/Gallery/undirected/root.gv.txt
However I can't get this to work out-of-the-box.

The command I tried is
sfdp -Goverlap=prism -Tgif root.gv > root.gif
with the following error;
sfdp: graph is too large for cairo-renderer bitmaps. Scaling
by 0.000220406 to fit
sfdp: failure to create cairo surface: out of memory
Segmentation fault

This works for me fine. It generates a gif file of 10673 x
4162 pixels.

If I use "-Gsize=500,500" I generate a blank image.

This is 500x500 inch. Does -Gsize=50,50! work for you?

I found adding "-Goverlap_scaling=-10 " to the command
doesn't alter the error message.

I also found that this
sfdp -Goverlap=prism -Tps root.gv > root.ps

Mostly like due to the image size as well. Try a smaller size
-Gsize=50!, or use pdf output then acroread.

Yifan

p.s.  I will change the instruction at

http://www.graphviz.org/Gallery/undirected/root.gv.txt

to use a smaller size.

runs with out error.  However the ps fails to load.

Thanks

PS:I am using Graphviz 2.26.3

_______________________________________________
[email protected]
https://mailman.research.att.com/mailman/listinfo/graphviz-interest

Trying to generate gallery sfdp graph using code provided

iter = 44, step = 0.000970 Fnorm = 4.627367 qt_level =
13 nsuper = 23 nz = 1370  K = 0.018658   level -- 0, n = 1054
iter = 44, step = 0.000970 Fnorm = 6.078375 qt_level = 12 nsuper =
26 nz = 2166  K = 0.013994   sfdp: overlap=-1 scaling -4.00
Adjusting G_component_0 using Voronoi

This last sentence suggest to me that for whatever reason, the prism
overlap removal algorithm was not invoked, instead the code was
using Voronoi diagram based overlap removal which can be quite bad,
to the extent that the coordinates are so large, when scaled down to
50 inch, nodes and edges are so small/thin that you see "nothing". 
If I use

sfdp -Goverlap=false -Gsize=50

I also see "nothing".

If you are indeed using

sfdp -Goverlap=prism

then I can not explain what is going on. Did you build your graphviz
from source? As if certain triangulation library (GTS) is not picked
up, prism will not work.

The prism functionality was added around end of 2008 I believe, is
your version after that?

Yifan

Node separation: add=1 (4.000000,4.000000)
Number of iterations = 2438
Number of increases = 128
Edge separation: add=1 (3.200000,3.200000)
Creating edges using line segments
Using render: cairo:cairo
Using device: gif:cairo:gd
sfdp: allocating a 63019K cairo image surface (4800 x 3361 pixels)

On 8 April 2011 19:28, Yifan Hu <[email protected]>
wrote:

On 04/08/2011 02:08 PM, Claire Donoghue
wrote:
Hi

thanks for your reply.

Upon further investigation with your suggestions, I
found that my output is always blank.

Specifically when I generate a pdf, it is of size 0. And
regardless of my -Gsize parameter the output shows a
blank image.

Does this sound like a bug with the version I am using?

What do you get if you use -v flag?

sfdp -Goverlap=prism -Tgif -v -Gsize=50! root.gv >
root.gif

Thanks,

On 8 April 2011 14:43, Yifan
Hu <[email protected]>
wrote:
On 04/08/2011 09:08
AM, [email protected]
wrote:
Hi,

I would like to generate a large graph like
this;
http://www.graphviz.org/content/root
So I was trying to use the example code as it is
to begin to understand how it works;
http://www.graphviz.org/Gallery/undirected/root.gv.txt
However I can't get this to work out-of-the-box.

The command I tried is
sfdp -Goverlap=prism -Tgif root.gv > root.gif
with the following error;
sfdp: graph is too large for cairo-renderer
bitmaps. Scaling by 0.000220406 to fit
sfdp: failure to create cairo surface: out of
memory
Segmentation fault

This works for me fine. It generates a gif file of
10673 x 4162 pixels.

If I use "-Gsize=500,500" I generate a blank
image.

This is 500x500 inch. Does -Gsize=50,50! work for
you?

I found adding
"-Goverlap_scaling=-10 " to the command doesn't
alter the error message.

I also found that this
sfdp -Goverlap=prism -Tps root.gv > root.ps

Mostly like due to the image size as well. Try a
smaller size -Gsize=50!, or use pdf output then
acroread.

Yifan

p.s.  I will change the instruction at

http://www.graphviz.org/Gallery/undirected/root.gv.txt

to use a smaller size.

runs with out
error.  However the ps fails to load.

Thanks

PS:I am using Graphviz 2.26.3

_______________________________________________
[email protected]
https://mailman.research.att.com/mailman/listinfo/graphviz-interest

Trying to generate gallery sfdp graph using code provided

On 04/08/2011 09:08 AM, [email protected] wrote:
> Hi,
>
> I would like to generate a large graph like this;
> http://www.graphviz.org/content/root
> So I was trying to use the example code as it is to begin to
> understand how it works;
> http://www.graphviz.org/Gallery/undirected/root.gv.txt
> However I can't get this to work out-of-the-box.
>
> The command I tried is
> sfdp -Goverlap=prism -Tgif root.gv > root.gif
> with the following error;
> sfdp: graph is too large for cairo-renderer bitmaps. Scaling by
> 0.000220406 to fit
> sfdp: failure to create cairo surface: out of memory
> Segmentation fault
This works for me fine. It generates a gif file of 10673 x 4162 pixels.
>
> If I use "-Gsize=500,500" I generate a blank image.
This is 500x500 inch. Does -Gsize=50,50! work for you?

> I found adding "-Goverlap_scaling=-10 " to the command doesn't alter
> the error message.
>
> I also found that this
> sfdp -Goverlap=prism -Tps root.gv > root.ps
Mostly like due to the image size as well. Try a smaller size
-Gsize=50!, or use pdf output then acroread.

Yifan

p.s. I will change the instruction at

http://www.graphviz.org/Gallery/undirected/root.gv.txt

to use a smaller size.

> runs with out error. However the ps fails to load.
>
>
> Thanks
>
> PS:I am using Graphviz 2.26.3
>
>
> _______________________________________________
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/graphviz-interest

_______________________________________________
[email protected]
https://mailman.research.att.com/mailman/listinfo/graphviz-interest

Trying to generate gallery sfdp graph using code provided

Hi,

I would like to generate a large graph like this;
http://www.graphviz.org/content/root
So I was trying to use the example code as it is to begin to understand how
it works;
http://www.graphviz.org/Gallery/undirected/root.gv.txt
However I can't get this to work out-of-the-box.

The command I tried is
sfdp -Goverlap=prism -Tgif root.gv > root.gif
with the following error;
sfdp: graph is too large for cairo-renderer bitmaps. Scaling by 0.000220406
to fit
sfdp: failure to create cairo surface: out of memory
Segmentation fault

If I use "-Gsize=500,500" I generate a blank image.
I found adding "-Goverlap_scaling=-10 " to the command doesn't alter the
error message.

I also found that this
sfdp -Goverlap=prism -Tps root.gv > root.ps
runs with out error. However the ps fails to load.

Thanks

PS:I am using Graphviz 2.26.3

_______________________________________________
[email protected]
https://mailman.research.att.com/mailman/listinfo/graphviz-interest

Recent comments