INGOR
Loading...
Searching...
No Matches
math
ytPGraph.h
1
/*
2
math/ytPGraph.{h,c} : Parent list Graph
3
Copyright (C) 2018, 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_PGRAPH_H
10
#define __YTLIB_PGRAPH_H
11
12
#include <stdlib.h>
13
#include "ytGraph.h"
14
#include "util/ytIntArray.h"
15
16
typedef
struct
{
17
#ifdef DOXY
18
private
:
19
#endif
/* DOXY */
20
ytGraph
super;
21
int
nodes;
22
ytIntArray
* parents;
23
}
ytPGraph
;
24
25
ytPGraph
* ytPGraph_new(
int
nodes);
26
ytObject
* ytPGraph_obj(
ytPGraph
*
this
);
27
ytGraph
* ytPGraph_Graph(
ytPGraph
*
this
);
28
void
ytPGraph_delete(
ytPGraph
*
this
);
29
void
ytPGraph_clear(
ytPGraph
*
this
);
30
int
ytPGraph_numNodes(
const
ytPGraph
*
this
);
31
int
ytPGraph_numParents(
const
ytPGraph
*
this
,
int
j);
32
int
ytPGraph_getParent(
const
ytPGraph
*
this
,
int
j,
int
k);
33
int
ytPGraph_checkEdge(
const
ytPGraph
*
this
,
int
src,
int
dst);
34
void
ytPGraph_addEdge(
ytPGraph
*
this
,
int
src,
int
dst);
35
void
ytPGraph_copy(
ytPGraph
*
this
,
const
ytPGraph
* src);
36
void
ytPGraph_copyGraph(
ytPGraph
*
this
,
const
ytGraph
* src);
37
void
ytPGraph_addGraph(
ytPGraph
*
this
,
const
ytGraph
* src);
38
39
#endif
/* __YTLIB_PGRAPH_H */
ytGraph
Interface class for handling graph structure.
ytIntArray
Expandable array.
ytObject
The basis class.
ytPGraph
Definition
ytPGraph.h:16
Generated by
1.9.8