INGOR
Loading...
Searching...
No Matches
ING Network File Format

The ING network file is written in JSON.
Thus, you can easily import and process networks in other programming languages. Currently, this is the official recommended file format to save networks estimated with INGOR.

Specification

The ING file a JSON object consisting of three keys, "version", "node", and "edge".

Top level Keys

version

An integer value representing the ING network file format version. Currently, only version 1 is defined.

node

An array of objects representing nodes.

edge
An array of objecdts representing edges.

node object

The following keys are defined. You can include arbitrary keys as node properties (attributes).

id
name
A string value representing the name of the node.

Example of an ING file.

{
"version":1,
"node":[
{
"id":0,
"name":"g1",
...
},
...
],
"edge":[
{
"src":0,
"dst":1,
...
},
...
]
}

NaN and infinity values

In the lastest implementation, if a double precision floating point value is NaN (not a number), infinity, or − infinity, then such a value is converted to null, 1e999999 or -1e999999.

The former implementation converted them into a string "nan", "inf", or "-inf". This is because JSON does not define how to express these values.

The current implementaton can read both versions of ING files.


Network file format | INGOR Manual