iVis-at-Bilkent / cytoscape.js-graphml

A Cytoscape.js extension to import from and export to GraphML format
MIT License
31 stars 8 forks source link

type-field at edges #4

Open SebastianOpriel opened 8 years ago

SebastianOpriel commented 8 years ago

Hello,

somehow (maybe due to the graphml specification) the attribute "type" is not recognized as an edge attribute. Therefore line 167 settings[$data.attr("type")][$data.attr("key")] = $data.text(); can't work. Obviously the type-attribute isn't set in line 95.

Therefore i solved this by directly accessing the data-field: settings["data"][$data.attr("key")] = $data.text();

This is not pretty and not very flexible but it works for me.

Kind regards Bastian