Skip to content

Python package to read and write NetworkX graphs as GDF (Graph Data Format).

License

Notifications You must be signed in to change notification settings

nelsonaloysio/networkx-gdf

Repository files navigation

networkx-gdf

PyPI package Documentation Status Downloads Downloads License

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).

Requirements

  • Python>=3.7
  • networkx>=2.1
  • pandas>=1.1.0

Install

Package is available to install on PyPI:

$ pip install networkx-gdf

Usage

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.

License

This package is released under the BSD License.

About

Python package to read and write NetworkX graphs as GDF (Graph Data Format).

Resources

License

Stars

Watchers

Forks

Languages