Hi, I am trying to get rid of a very verbose file by configuring color of nodes as default. But visualization does not seem to be understanding the default values.
If I configure, color for nodes as:
<?xml version="1.0" ?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns">
<key id="b" for="node" attr.name="b" attr.type="int"></key>
<key id="g" for="node" attr.name="g" attr.type="int"></key>
<key id="label" for="node" attr.name="label" attr.type="string"></key>
<key id="r" for="node" attr.name="r" attr.type="int"></key>
<graph id="G" edgedefault="directed">
<node id="pp000">
<data key="b">255</data>
<data key="g">255</data>
<data key="label">data Architectures</data>
<data key="r">0</data>
</node>
</graph>
</graphml>
it works. However, if I set color as default, nodes are rendered in grey color rather than blue.
<?xml version="1.0" ?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns">
<key id="b" for="node" attr.name="b" attr.type="int"><default>255</default></key>
<key id="g" for="node" attr.name="g" attr.type="int"><default>255</default></key>
<key id="label" for="node" attr.name="label" attr.type="string"></key>
<key id="r" for="node" attr.name="r" attr.type="int"><default>0</default></key>
<graph id="G" edgedefault="directed">
<node id="pp000">
<data key="label">data Architectures</data>
</node>
</graph>
</graphml>
Is it a bug?
Thanks,
Adolfo
setting a default param
-
- Posts:3
- Joined:30 Jan 2012 19:29 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable