Python library to load JGF files
Project description
JGF(Z) format implementation
This package implements export and import functions for the JSON Graph Format (gZipped) JGF(Z)
(https://jsongraphformat.info). Supported input formats/libraries are networkx
, igraph
, numpy
matrices and JXNF
files. All network, node and edges attributes are saved as well.
Authors
Installation
You can install this package using pip
:
pip install jgf
or install it from this git repository:
git clone <repository URL>
cd <repository PATH>
pip install -e ./
Example of use
To use the library in igraph environment simply import the correct module and run save
or load
functions:
import igraph as ig
import jgf.igraph as jig
g = ig.Graph.Famous("Zachary")
# will save a compressed file
jig.save(g,"zachary.jgfz")
g, = jig.load("zachary.jgfz")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jgf-0.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
jgf-0.1-py3-none-any.whl
(8.3 kB
view hashes)