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

Parent list network file format. More...

#include <ytPaList.h>

Public Member Functions

void ytPaList_write (FILE *fp, const ytNetwork *network, const ytKeyValues *args)
 Writes a network in parent list format.
 
ytNetworkytPaList_read (FILE *fp, const ytKeyValues *args)
 Reads a network in parent list format.
 

Detailed Description

Parent list network file format.

PaList is the simple network file format where the file is a tab-separated text file with lines representing lists of parents. The first column of each line corresponds to a node name and following columns are their parents.

See also
ytIO

Member Function Documentation

◆ ytPaList_read()

ytNetwork * ytPaList_read ( FILE *  fp,
const ytKeyValues args 
)

Reads a network in parent list format.

Arguments

id=n
Reads the file as the lists of 0-origin node IDs. The value n represents the total number of IDs (= nodes). Thus, it expects to read "0" to "(n − 1)" in the file. Node names become "gn" where n represents ID + 1. The prefix can be specified by "prefix=" argument.
Parameters
fp
args

◆ ytPaList_write()

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

Writes a network in parent list format.

Arguments

t
Outputs the types of nodes.
Parameters
fp
network
args

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