9#ifndef __YTLIB_PC_GRAPH_H
10#define __YTLIB_PC_GRAPH_H
14#include "util/ytIntArray.h"
28void ytPCGraph_setOrder(
ytPCGraph *
this,
int nodes);
34int ytPCGraph_numNodes(
const ytPCGraph *
this);
35int ytPCGraph_numParents(
const ytPCGraph *
this,
int j);
36int ytPCGraph_numChildren(
const ytPCGraph *
this,
int j);
37int ytPCGraph_numEdges(
const ytPCGraph *
this);
38int ytPCGraph_degree(
const ytPCGraph *
this,
int j);
39int ytPCGraph_getParent(
const ytPCGraph *
this,
int j,
int k);
40int ytPCGraph_getChild(
const ytPCGraph *
this,
int j,
int k);
41const int * ytPCGraph_getParents(
const ytPCGraph *
this,
int j);
42const int * ytPCGraph_getChildren(
const ytPCGraph *
this,
int j);
43int ytPCGraph_checkEdge(
const ytPCGraph *
this,
int src,
int dst);
44void ytPCGraph_addEdge(
ytPCGraph *
this,
int src,
int dst);
45void ytPCGraph_removeEdge(
ytPCGraph *
this,
int src,
int dst);
46int ytPCGraph_removeLastEdge(
ytPCGraph *
this,
int src,
int dst);
52void ytPCGraph_print(
const ytPCGraph *
this, FILE * fp);
53int ytPCGraph_test(
int argc,
char * argv[]);
Interface class for handling graph structure.
Definition ytPCGraph.h:16