Given a directed graph G, pairwise Markov statements are statements of the form {v,w,nondescendents(G,v)-w}for each vertex v of G. In other words, for every vertex v of G and all nondescendents w of v, v is independent of w given all other nondescendents.
i1 : D = digraph {{a,{b,c}}, {b,{c,d}}, {c,{}}, {d,{}}} o1 = Digraph{a => set {b, c}} b => set {c, d} c => set {} d => set {} o1 : Digraph |
i2 : L = pairMarkov D o2 = {{{c}, {d}, {b, a}}, {{a}, {d}, {b, c}}} o2 : List |