INGOR
|
JSON based INGOR native network file format. More...
#include <ytING.h>
Public Member Functions | |
void | ytING_write (FILE *fp, const ytNetwork *network, const ytKeyValues *args) |
Writes a network into a file in JSON format. | |
JSON based INGOR native network file format.
This class provides routines that read and write a network of the ytNetwork instance in the ING network file format.
The ING network file is written in JSON. Thus, you can easily import and process networks in other programming languages.
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
node
objectThe following keys are defined. You can include arbitrary keys as node properties (attributes).
id
name
string
value representing the name of the node. If a double precision floating point value is NaN (not a number), infinity, or − infinity, then such a value is converted to a string "nan
", "inf
", or "-inf
". This is because JSON does not define how to express these values.
void ytING_write | ( | FILE * | fp, |
const ytNetwork * | network, | ||
const ytKeyValues * | args | ||
) |
Writes a network into a file in JSON format.
fp | |
network | |
args |