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 All rights reserved.
5
6 See LICENSE.txt for details of the licensing agreement.
7*/
8
9#ifndef __YTLIB_DBN_GRAPH_H
10#define __YTLIB_DBN_GRAPH_H
11
12#include "ytGraph.h"
13
14typedef struct ytDBNGraph_t ytDBNGraph;
15ytDBNGraph * ytDBNGraph_new(int p, int T, ytGraph * g);
16int ytDBNGraph_numNodes(const ytDBNGraph * this);
17int ytDBNGraph_numEdges(const ytDBNGraph * this);
18int ytDBNGraph_checkEdge(const ytDBNGraph * this, int src, int dst);
19int ytDBNGraph_numParents(const ytDBNGraph * this, int j);
20const int * ytDBNGraph_getParents(const ytDBNGraph * this, int j);
21void ytDBNGraph_setHybrid(ytDBNGraph * this, int hybrid);
22
23#endif /* __YTLIB_DBN_GRAPH_H */
Interface class for handling graph structure.