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.
This project is being developed to support the new network datatype for (brainlife.io).
Authors
Funding
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.2.tar.gz
(9.0 kB
view hashes)
Built Distribution
jgf-0.2-py3-none-any.whl
(11.3 kB
view hashes)