INGOR
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ytING Class Reference

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.
 

Detailed Description

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":1,
"node":[
{
"id":0,
"name":"g1",
...
},
...
],
"edge":[
{
"src":0,
"dst":1,
...
},
...
]
}

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.

NaN and infinity values

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.

See also
ytIO

Member Function Documentation

◆ ytING_write()

void ytING_write ( FILE *  fp,
const ytNetwork network,
const ytKeyValues args 
)

Writes a network into a file in JSON format.

Parameters
fp
network
args

The documentation for this class was generated from the following file: