36#ifndef __YTLIB_PC_GRAPH_H
37#define __YTLIB_PC_GRAPH_H
41#include "util/ytIntArray.h"
55void ytPCGraph_setOrder(
ytPCGraph *
this,
int nodes);
61int ytPCGraph_numNodes(
const ytPCGraph *
this);
62int ytPCGraph_numParents(
const ytPCGraph *
this,
int j);
63int ytPCGraph_numChildren(
const ytPCGraph *
this,
int j);
64int ytPCGraph_numEdges(
const ytPCGraph *
this);
65int ytPCGraph_degree(
const ytPCGraph *
this,
int j);
66int ytPCGraph_getParent(
const ytPCGraph *
this,
int j,
int k);
67int ytPCGraph_getChild(
const ytPCGraph *
this,
int j,
int k);
68const int * ytPCGraph_getParents(
const ytPCGraph *
this,
int j);
69const int * ytPCGraph_getChildren(
const ytPCGraph *
this,
int j);
70int ytPCGraph_checkEdge(
const ytPCGraph *
this,
int src,
int dst);
71void ytPCGraph_addEdge(
ytPCGraph *
this,
int src,
int dst);
72void ytPCGraph_removeEdge(
ytPCGraph *
this,
int src,
int dst);
73int ytPCGraph_removeLastEdge(
ytPCGraph *
this,
int src,
int dst);
79void ytPCGraph_print(
const ytPCGraph *
this, FILE * fp);
80int ytPCGraph_test(
int argc,
char * argv[]);
Interface class for handling graph structure.
Definition ytPCGraph.h:43