INGOR
Loading...
Searching...
No Matches
ytDBNGraph.h
1/*
2 math/ytDBNGraph.{h,c} : N-partite graph for dynamic model.
3 Copyright (C) 2021, Yoshinori Tamada <tamada A T ytlab.jp>
4*/
5
6#ifndef __YTLIB_DBN_GRAPH_H
7#define __YTLIB_DBN_GRAPH_H
8
9#include "ytGraph.h"
10
11typedef struct ytDBNGraph_t ytDBNGraph;
12ytDBNGraph * ytDBNGraph_new(int p, int T, ytGraph * g);
13int ytDBNGraph_numNodes(const ytDBNGraph * this);
14int ytDBNGraph_numEdges(const ytDBNGraph * this);
15int ytDBNGraph_checkEdge(const ytDBNGraph * this, int src, int dst);
16int ytDBNGraph_numParents(const ytDBNGraph * this, int j);
17const int * ytDBNGraph_getParents(const ytDBNGraph * this, int j);
18void ytDBNGraph_setHybrid(ytDBNGraph * this, int hybrid);
19
20#endif /* __YTLIB_DBN_GRAPH_H */
Interface class for handling graph structure.