Access Keys:
Skip to content (Access Key - 0)

GraphML-Attribute value

Added by N Shen , last edited by N Shen on Jul 21, 2010 00:40

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

Join the Lab

  • Access to our free components
  • Give your feedback, your needs
  • Participate to our roadmap

Account


Forgot password ?

Latest Updates: 2010/07/12

Releases on:

Top News

Kap2Flex & Klovis new releases
(2010/06/08)
Kap2Flex A new release of our Flex code generator.
Klovis A set of free and open-source libraries.

Read the news »
ConfluenceFx release 1.0!
(2010/06/08)

After a year of beta program and lots of user feedbacks, we are glad to announce the 1st commercial release of CFx!

Need Information?

  1. 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 :

    protected function colorFunction(data:Object):uint
    {
    	return ColorUtils.convertColor(data.color);
    }
    

    Regards,
    Mohamed Amami.

    1. 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

Log in to reply

Why Kap Lab ?

Kap Lab exists because innovation is our passion. Enjoy our products and help us to give you the best.

Cyril Daloz
CEO Kap IT

Adaptavist Theme Builder (3.3.5-conf210) Powered by Atlassian Confluence 2.10.3, the Enterprise Wiki.