gephi.team team mailing list archive
-
gephi.team team
-
Mailing list archive
-
Message #00478
[Bug 581629] Re: GraphML importer doesn't import node labels data
Hi
I suggest following fix (see code snippet below) thus labels are
recognized for GraphML files created by yEd (yworks.com).
Best Regards
Raymond
public class ImporterGraphML implements FileImporter, LongTask {
..
public ImporterGraphML() {
//Default node associations
properties.addNodePropertyAssociation(NodeProperties.LABEL, "label");
properties.addNodePropertyAssociation(NodeProperties.LABEL, "d3"); // Default node label used by yEd from yworks.com.
properties.addNodePropertyAssociation(NodeProperties.X, "x");
properties.addNodePropertyAssociation(NodeProperties.Y, "y");
properties.addNodePropertyAssociation(NodeProperties.Z, "z");
properties.addNodePropertyAssociation(NodeProperties.SIZE, "size");
//Default edge associations
properties.addEdgePropertyAssociation(EdgeProperties.LABEL, "label");
properties.addEdgePropertyAssociation(EdgeProperties.LABEL, "edgelabel");
properties.addEdgePropertyAssociation(EdgeProperties.LABEL, "d7"); // Default edge label used by yEd from yworks.com.
properties.addEdgePropertyAssociation(EdgeProperties.WEIGHT, "weight");
properties.addEdgePropertyAssociation(EdgeProperties.ID, "id");
properties.addEdgePropertyAssociation(EdgeProperties.ID, "edgeid");
}
--
GraphML importer doesn't import node labels data
https://bugs.launchpad.net/bugs/581629
You received this bug notification because you are a member of Gephi
Team, which is subscribed to 0.7.
Status in Gephi - Network exploration and manipulation: Fix Committed
Status in Gephi 0.7 series: Fix Committed
Bug description:
For the graphml string below, Gephi doesn't recognize the label
<node id="0">
<data key="label">ABC</data>
</node>
References