|
INGOR
|
Generating random graphs. More...
#include <ytRNDGraph.h>
Public Member Functions | |
| int * | ytRNDGraph_sfDag (ytGraph *g, ytRNG *rng, double deg) |
| Generating a scale-free directed acyclic graph using the modified barabasi-albert model. | |
| int * | ytRNDGraph_sfDagType (ytGraph *g, ytRNG *rng, double deg, double r, int md, int *type) |
| Generating a scale-free directed acyclic graph using the modified barabasi-albert model. | |
| int * | ytRNDGraph_dag (ytGraph *g, ytRNG *rng, double deg) |
| Generates a random DAG. | |
| int * | ytRNDGraph_dbn (ytGraph *g, ytRNG *rng, int T, double deg) |
| Generates a DBN graph. | |
Generating random graphs.
Random Graph Generating Routines.
Generates a DBN graph.
A DBN graph is a graph where edges connect only between nodes of the consecutive time points.
| g | graph instance. |
| rng | ytRNG isntance. |
| T | number of time points. |
| deg | average degree of nodes. |
Generating a scale-free directed acyclic graph using the modified barabasi-albert model.
| [in,out] | g | graph. The number of nodes of the graph is given by this instance. |
| rng | Random number generator. If NULL is specified, is is automatically generated and initialized by the current time. |
r[i] -> r[j] for i < j exist where r is the returned pointer. Generating a scale-free directed acyclic graph using the modified barabasi-albert model.
| [in,out] | g | graph. The number of nodes of the graph is given by this instance. |
| rng | Random number generator. If NULL is specified, is is automatically generated and initialized by the current time. | |
| r | ratio of discrete variables. | |
| md | maximum number of parents of discrete node. | |
| [out] | type | type id will be set in type. The values are types of ytData. |