Grandlite supports a growing variety of input formats. If your graph is in any of the formats below, it can be loaded directly using Grandlite (and converted to any other supported format if you so choose).
Files can be read directly.
Under the hood, uses networkx.read_graphml
etc.
CSV edgelists can be read either with the assumption that the first two columns are source and target (and all remaining columns, if any, are edge attributes), or a header row can be specified.
With no header, the following URI formats for import can be used:
$ grandlite my-example-graph.csv
$ grandlite my-example-graph.edgelist
$ grandlite 'edgelist://my-example-graph.anyextension'
To read edgelist files with a header-row, you can specify the columns that correspond to source and target nodes. For example, in the following edgelist file,
MySource,MyTarget,Weight
1,2,0.5
2,3,0.7
you can specify the column names as follows:
$ grandlite 'h-edgelist(MySource:MyTarget):///path/to/my-example-graph.csv'
Vertex/Edge files in the OpenCypher import format can be read using the vertex:
and edge:
prefixes.
$ grandlite 'vertex:vertices.csv;edge:edges.csv'