Files that were saved under the gdf format of gephi coud not be opend by GDF.FromFile due to differences in the expected formating and the actual formating. A detailed list is found down below.
Repro steps
Save any graph as .gdf in gephi.
Try to open it via FSharp.FGL.IO.GDF.fromFile
Expected behavior
The graph will be acquired from the file and returned
Actual behavior
The experienced issues are:
vertex X does not contain any identifier.
unknown typeAnnotation in header.
edge XY does not contain any vertex ids.
Solution
These errors occur, because the sample data used to code the GDF file reader (gephi example page) differs in its internal structure from the gdf structure shown by gephi. However, the implementation of this is straightforward.
allow for vertex headers to contain spacebar as a first character. Previously the first char needed to be part of the name string.
change the typeAnnotation coded as INT to INTEGER
if not stated otherwise, assume that node-Ids are strings. Previously the type (string/int/float) of the node-Id had to be stated in the header.
A pull request will follow soon which will fix these errors.
Description
Files that were saved under the gdf format of gephi coud not be opend by GDF.FromFile due to differences in the expected formating and the actual formating. A detailed list is found down below.
Repro steps
Save any graph as .gdf in gephi.
Try to open it via FSharp.FGL.IO.GDF.fromFile
Expected behavior
The graph will be acquired from the file and returned
Actual behavior
The experienced issues are:
Solution
These errors occur, because the sample data used to code the GDF file reader (gephi example page) differs in its internal structure from the gdf structure shown by gephi. However, the implementation of this is straightforward.
A pull request will follow soon which will fix these errors.