You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the GraphML Importer (ImporterGraphML.java) some attribute ids like "xpos" and "x" or "label" and "d3" seem to be considered equivalent. If you specify for example an attribute d3 in a GraphML file and import that file, the values of this attribute are only available under the id label. If you specify multiple attributes that are considered equivalent by Gephi (label and d3), one of them seems to be dismissed, which is inconsistent with the GraphML specification.
Example:
When I try to import a graphml file [1] that specifies the attributes d3 for nodes and d7 for edges with the gephi toolkit as shown in the java snippet [2], the ids d3 and d7 throw exceptions, while I can get the values via the id label.
Further, if I create an attribute with the id label, n.getAttribute("label") returns the value for label but n.getAttribute("d3") still throws an exception, so I have no access to the attribute d3.
----------------
Columns for node:
----------------
label:D3 Data
someidfornode:Some Node Data
java.lang.IllegalArgumentException: The column 'd3' is not found
at org.gephi.graph.impl.ElementImpl.checkColumnExists(ElementImpl.java:710)
at org.gephi.graph.impl.ElementImpl.getAttribute(ElementImpl.java:89)
----------------
Columns for edge:
----------------
label:D7 Data
someidforedge:Some Edge Data
java.lang.IllegalArgumentException: The column 'd7' is not found
at org.gephi.graph.impl.ElementImpl.checkColumnExists(ElementImpl.java:710)
at org.gephi.graph.impl.ElementImpl.getAttribute(ElementImpl.java:89)
The text was updated successfully, but these errors were encountered:
In the GraphML Importer (ImporterGraphML.java) some attribute ids like "xpos" and "x" or "label" and "d3" seem to be considered equivalent. If you specify for example an attribute
d3
in a GraphML file and import that file, the values of this attribute are only available under the idlabel
. If you specify multiple attributes that are considered equivalent by Gephi (label
andd3
), one of them seems to be dismissed, which is inconsistent with the GraphML specification.Example:
When I try to import a graphml file [1] that specifies the attributes
d3
for nodes andd7
for edges with the gephi toolkit as shown in the java snippet [2], the idsd3
andd7
throw exceptions, while I can get the values via the idlabel
.Further, if I create an attribute with the id
label
,n.getAttribute("label")
returns the value forlabel
butn.getAttribute("d3")
still throws an exception, so I have no access to the attributed3
.[1] examplefile.graphml
[2] Java Snippet
Output:
The text was updated successfully, but these errors were encountered: