Hello,
When will Visualizer support GraphML-attribute feature? When I tried to load following GraphML .xml file into Visualizer. Visaualier ignore the Graph-ML-attribute (key).
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns/graphml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns/graphml">
<key id="d0" for="node"
attr.name="color" attr.type="string">
<default>yellow</default>
</key>
<key id="d1" for="edge"
attr.name="weight" attr.type="double"/>
<graph id="G" edgedefault="undirected">
<node id="n0">
<data key="d0">green</data>
</node>
<node id="n1"/>
<node id="n2">
<data key="d0">blue</data>
</node>
<node id="n3">
<data key="d0">red</data>
</node>
<node id="n4"/>
<node id="n5">
<data key="d0">turquoise</data>
</node>
<edge id="e0" source="n0" target="n2">
<data key="d1">1.0</data>
</edge>
<edge id="e1" source="n0" target="n1">
<data key="d1">1.0</data>
</edge>
<edge id="e2" source="n1" target="n3">
<data key="d1">2.0</data>
</edge>
<edge id="e3" source="n3" target="n2"/>
<edge id="e4" source="n2" target="n4"/>
<edge id="e5" source="n3" target="n5"/>
<edge id="e6" source="n5" target="n4">
<data key="d1">1.1</data>
</edge>
</graph>
</graphml>
Thanks
Hannah
Comments (2)
Jul 21
Mohamed AMAMI says:
Hello, Visualizer fully supports GML-Attribute Feature and even implicit proper...Hello,
Visualizer fully supports GML-Attribute Feature and even implicit properties in items' definitions. In each item (node or edge data) you can find all node information that the gml source has defined.
I guess that you wish to have the coloring information rendered inside the Visualizer. This is not the case actually as such information cannot be interpreted correctly (color, size.....).
In order to color nodes according to the color attribute, use 'colorFunction' property. The function that you should use should be as follow :
Regards,
Mohamed Amami.
Jul 23
N Shen says:
Mohamed, Thanks, I was able to set the GraphML node color dynamicaly by using ...Mohamed,
Thanks, I was able to set the GraphML node color dynamicaly by using the Visualizer coloringFunction properties.
N Shen