35#ifndef __YTLIB_NET_UTILS_H
36#define __YTLIB_NET_UTILS_H
38#include "util/ytData.h"
42 int * mp,
int * mc,
int * md);
44 int j,
const int * parents,
int q,
49 const int * rmap,
int * mp,
int * mc,
int * md);
void ytNetUtils_countParentTypes(const ytNetwork *network, const ytData *data, int *mp, int *mc, int *md)
Counts the maximum numbers of type specific parents in a network.
Definition: ytNetUtils.c:98
int ytNetUtils_netToDataMap(const ytNetwork *network, const ytData *data, int *map)
Sets a map of indices from the network to the data.
Definition: ytNetUtils.c:201
void ytNetUtils_countParentType(const ytData *data, int j, const int *parents, int q, int *nc, int *nd)
Counts the maximum numbers of type specific parents for a single node.
Definition: ytNetUtils.c:75
int ytNetUtils_checkConsistency(const ytNetwork *network, const ytData *data, const char *name)
Checks if the nodes in the network are consistent with given ytData instance.
Definition: ytNetUtils.c:53
int ytNetUtils_dataToNetMap(const ytData *data, const ytNetwork *network, int *map)
Sets a map of indices from the data to the network.
Definition: ytNetUtils.c:181
void ytNetUtils_countParentTypes2(const ytNetwork *network, const ytData *data, const int *rmap, int *mp, int *mc, int *md)
Counts the maximum numbers of types of parents in a network with the node map.
Definition: ytNetUtils.c:126
General data container.
Definition: ytData.h:73