Efficient coding of labeled directed acyclic graphs

被引:7
作者
Steinsky, B [1 ]
机构
[1] Salzburg Univ, Inst Psychol, A-5020 Salzburg, Austria
关键词
directed acyclic graph (DAG); Bayesian network; enumeration; rank; generation;
D O I
10.1007/s00500-002-0223-5
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We use an adaptation of the Prufer code for trees to encode labeled directed acyclic graphs, which are often abbreviated to DAGs (or ADGs). In this paper, each DAG is assigned a unique DAG code, which allows an easy handling for several purposes. The set of all possible DAG codes (and therefore the set of all DAGs) for a fixed number of n vertices can be generated efficiently. Furthermore, we are able to rank DAGs, i.e., we provide an algorithm that assigns every DAG a unique number in the set {0, . . . , a(n) - 1}, where a(n) is the cardinality of the set of labeled DAGs with n greater than or equal to 1 vertices, and we are able to unrank DAGs, which is the inverse operation. We also gain recurrence relations, which can be used to calculate a(n) and a(n,q), i.e., the number of DAGs with n vertices and q edges. Finally, it is possible to generate, enumerate, rank and unrank DAGs with given number of edges and also DAGs with bounded indegree.
引用
收藏
页码:350 / 356
页数:7
相关论文
共 7 条
[1]  
Cameron P., 1994, COMBINATORICS TOPICS
[2]   Counting acyclic digraphs by sources and sinks [J].
Gessel, IM .
DISCRETE MATHEMATICS, 1996, 160 (1-3) :253-258
[3]  
Lauritzen S.L., 1996, Graphical models, V17, P298
[4]  
Little CHC, 1977, COMBINATORIAL MATH, P28, DOI DOI 10.1007/BFB0069178
[5]  
Robinson R. W., 1973, NEW DIRECTIONS THEOR, P239
[6]  
VERMA T, 1988, UNC ART INT P 4 C, P352
[7]  
[No title captured]