Mercurial > hg > camir-ismir2012
annotate toolboxes/FullBNT-1.0.7/graph/test.m @ 0:cc4b1211e677 tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
author | Daniel Wolff |
---|---|
date | Fri, 19 Aug 2016 13:07:06 +0200 |
parents | |
children |
rev | line source |
---|---|
Daniel@0 | 1 % A - B |
Daniel@0 | 2 % | |
Daniel@0 | 3 % D - C - E |
Daniel@0 | 4 |
Daniel@0 | 5 A=1;B=2;C=3;D=4;E=5; |
Daniel@0 | 6 dag = zeros(5,5); |
Daniel@0 | 7 dag(A,B)=1; |
Daniel@0 | 8 %dag(A,D)=1; |
Daniel@0 | 9 dag(B,C)=1; |
Daniel@0 | 10 dag(C,D)=1; |
Daniel@0 | 11 dag(E,C)=1; |
Daniel@0 | 12 [d, pre, post, cycle, f, pred] = dfs(dag, A, 0) |
Daniel@0 | 13 |
Daniel@0 | 14 [T, pre, post, cycle] = mk_rooted_tree(dag, A) |
Daniel@0 | 15 |
Daniel@0 | 16 %[T, pre, post, cycle] = mkRootedTree(dag, A) |