Acyclic directed mixed graphs

Check if it is an adjacency matrix of an ancestral graph

1 | ```
isAG(amat)
``` |

`amat` |

Checks if the following conditions must hold: (i) no undirected edge meets an arrowhead; (ii) no directed cycles; (iii) spouses cannot be ancestors. For details see Richardson and Spirtes (2002).

A logical value, `TRUE`

if it is an ancestral graph and `FALSE`

otherwise.

Giovanni M. Marchetti, Mathias Drton

Richardson, T. S. and Spirtes, P. (2002). Ancestral Graph Markov
Models. *Annals of Statistics*, 30(4), 962–1030.

1 2 3 4 5 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.