"Float" type instead of "decimal" type for graphml

41 views
Skip to first unread message

Conrad Lee

unread,
Apr 26, 2012, 5:26:31 AM4/26/12
to visone...@googlegroups.com
Hello Konstanz!

I've been having trouble importing graphml files.  At the beginning of these files there is a section where you declare the attributes of nodes and edges.  It looks like this:
  <key attr.name="weight" attr.type="float" for="edge" id="d4" />
  <key attr.name="lag" attr.type="int" for="edge" id="d3" />     
  <key attr.name="label" attr.type="string" for="node" id="d2" />
  <key attr.name="pagerank" attr.type="float" for="node" id="d1" />
  <key attr.name="weighted_indegree" attr.type="float" for="node" id="d0" />

Visone doesn't like the attr.type="float" -- it imports these as strings.  It seems that visone expects attr.type="decimal" instead.  It appears that the GraphML specification says the correct name is "float".  Perhaps Visone could support both "float" and "decimal" and map them  both to floating point types.

Of course there is a workaround to this problem: use the "attribute manager" to change the types.  But it is annoying to do this every time, and ideally Visone would support the proper GraphML specification.

Greetings from Dublin,

Conrad

P.S. Some Visone visualizations have made it into the media (e.g., here here and here)

Arlind Nocaj

unread,
Jan 8, 2013, 11:22:07 AM1/8/13
to visone...@googlegroups.com
Dear Conrad,

in the next release, visone will recognize the attribute type "float" as decimal, too.

Greetings
Arlind

Conrad Lee

unread,
Jan 8, 2013, 2:45:48 PM1/8/13
to visone...@googlegroups.com
Great.

Happy new year to you everyone else!

Conrad


Arlind

--
You received this message because you are subscribed to the Google Groups "visone-users" group.
To post to this group, send email to visone...@googlegroups.com.
To unsubscribe from this group, send email to visone-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/visone-users?hl=en.

Reply all
Reply to author
Forward
0 new messages