This document tried to answer the most frequently asked questions in relation to Graph::Easy, as well as for the MediaWiki integration.
This document tried to answer the most frequently asked questions in relation to Graph::Easy, as well as for the MediaWiki integration.
Is there an interactive editor or GUI for Graph::Easy?
Answer: [2014-05-25]No, there is no longer an editor. Sorry.
Question:What extension should Graph::Easy files have?
Answer: [2006-12-17]
The native format of Graph::Easy is called "txt", as can be seen on the
method names (as_txt()
) as well as the converter options. And
since a graph description in Graph::Easy is just this, text, the file
extension used should be .txt
.
Some people like to invent their own extension for Graph::Easy files, but this
just is a solution in search for a problem, and actually causes more problems,
namely:
Therefore, Graph::Easy textual descriptions should be called what they are:
.txt
.
What are the main differences between Graph::Easy
and Graphviz?
Graph::Easy
has:
What can Graphviz, that Graph::Easy
cannot do?
Here is a list of things that Graph::Easy
has difficulties with, or that are
not yet implemented:
What can Graph::Easy
, that Graphviz cannot do?
text-wrap: auto
automatically wraps labels (Implemented in v0.43)
linkbase
and a link
. Thus you
can easily set a common base part and put the rest per node on it. There are even attributes
than build links or titles automatically.
w3c
. This is also the default. (Color scheme support is implemented in v0.46)
Are there other differences between Graph::Easy
and Graphviz?
There are other differences which have mainly to do with the output formats and their limitations or advantages. For instance:
Since Graph::Easy's own layouter can only output HTMl, ASCII or SVG, other formats like PNG or PDF must be created by either using the graphviz backend, or by outputting SVG and then converting this. In the future SVG support by viewing and printer subsystems will hopefully be so good that such "hacks" are no longer required, though.
Question:Is there a speed difference?
Answer: [2006-03-12]
Graph::Easy
might be a bit slower for some things, but is faster for others.
In praxis this only matters for huge graphs. For details, please see the benchmark page.
When I click a link in an SVG graph, the new page is opened inside the graph, instead of in a new window/tab or even in the same window.
Answer:
This is a Firefox 1.5 bug. Firefox will open links in SVGs by default "inline", and
it even ignores attributes like "xlink:show" and "xlink:target".
The bug is reportedly already
fixed in the Mozilla codebase, so it should work in the near future in a browser
on your system.
In the meantime upgrade Graph::Easy::As_svg,
as newer versions contain a workaround for this bug.
See also bug #315389 in the bugzilla.
The text on nodes is to small, or to big, and sometimes even crosses the node border.
Answer:
Please upgrade Graph::Easy::As_svg, this bug has been fixed in v0.18.
You still might see text that is either too big or too small if you
use the text-zoom (CTRL
plus +
or -
),
Firefox will zoom the font/text, but not the rest of the SVG, thus the graphic quickly
becomes garbled.
I see only garbled graphs, f.i. it has black rectangles or the labels are not properly centered.
Answer:
Make sure you are using the latest version of your browser. Opera 8.5 does only
support SVG Tiny, which is not enough to properly display the SVG generated
by Graph::Easy. Likewise, Opera 9.0 only supports SVG Basic, which sadly
also misses key features like centered text.
Other browsers seem to lack support for CSS-styles inside SVG, and thus will
render the fillcolor inside nodes wrongly (the default is black, and the
overriden color from the CSS is ignored by these buggy browsers).
Can I install and use Graph::Easy under Windows?
Answer:Yes. You need two things:
After installing Perl and nmake, you can install Graph::Easy normally, just replacing "make" with "nmake" in the install instructions:
perl Makefile.PL nmake nmake test nmake install
If you have questions, or found an error on this page, feel free to send me an email. Bugreports should go to rt.cpan.org.