Tiago de Paula Peixoto schrieb:
terminate called after throwing an instance of 'boost::parse_error' what(): parse error: on line 6680, column 1: invalid value "
" for key label of type double
From the file: [...]
Why does the GraphML reader try to parse the d0 (label) attribute as a double?! It seems to me not that it is trying to parse the label as a double, but that the label value is invalid, i.e. empty. Could you send the whole file (preferebly) or at least the line (6680) where the error happens, so that I can take a closer look?
According to the file you sent my by private mail, around line 6680 there is the following (white space and newlines omitted):
<data key="d4"></data>
And 'd4' is the key for a property of type double named 'label' (hence the confusing error message). Such an empty entry cannot be converted to a double value, so indeed the file is invalid...
Cheers, Tiago
OK, thanks a lot. I renamed the property to label2 to avoid confusion. Is it possible to have attributes with the same name for nodes and edges? And maybe the error message should mention for which kind of graph element the attribute is ... Cheers, Jens