Python package to read and write NetworkX graphs as GDF (Graph Data Format).
GDF is a compact file format originally implemented by GUESS. Although the software itself is not anymore maintained, the format is still supported by active open-source projects such as Gephi (see details here).
- Python>=3.7
- networkx>=2.1
- pandas>=1.1.0
Package is available to install on PyPI:
$ pip install networkx-gdf
The following is an example covering the package's functionality:
from networkx_gdf import read_gdf, write_gdf
# Builds NetworkX graph object from file.
G = read_gdf("input_file.gdf")
# Writes NetworkX graph object to file.
write_gdf(G, "output_file.gdf")
For detailed information on usage, please refer to its official documentation.
This package is released under the BSD License.