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"); }
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 {
properties. addNodeProperty Association( NodeProperties. LABEL, "label");
properties. addNodeProperty Association( NodeProperties. LABEL, "d3"); // Default node label used by yEd from yworks.com.
properties. addNodeProperty Association( NodeProperties. X, "x");
properties. addNodeProperty Association( NodeProperties. Y, "y");
properties. addNodeProperty Association( NodeProperties. Z, "z");
properties. addNodeProperty Association( NodeProperties. SIZE, "size");
..
public ImporterGraphML() {
//Default node associations
//Default edge associations
properties. addEdgeProperty Association( EdgeProperties. LABEL, "label");
properties. addEdgeProperty Association( EdgeProperties. LABEL, "edgelabel");
properties. addEdgeProperty Association( EdgeProperties. LABEL, "d7"); // Default edge label used by yEd from yworks.com.
properties. addEdgeProperty Association( EdgeProperties. WEIGHT, "weight");
properties. addEdgeProperty Association( EdgeProperties. ID, "id");
properties. addEdgeProperty Association( EdgeProperties. ID, "edgeid");
}