diff toolboxes/FullBNT-1.0.7/graph/test.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toolboxes/FullBNT-1.0.7/graph/test.m	Tue Feb 10 15:05:51 2015 +0000
@@ -0,0 +1,16 @@
+% A - B
+%     |
+% D - C - E
+
+A=1;B=2;C=3;D=4;E=5;
+dag = zeros(5,5);
+dag(A,B)=1;
+%dag(A,D)=1;
+dag(B,C)=1;
+dag(C,D)=1;
+dag(E,C)=1;
+[d, pre, post, cycle, f, pred] = dfs(dag, A, 0)
+
+[T, pre, post, cycle] = mk_rooted_tree(dag, A)
+
+%[T, pre, post, cycle] = mkRootedTree(dag, A)