Description Usage Arguments Details Value Examples

Find One Total Order Consistent with Partial Order or With Directed Acyclic Graph

1 |

`from` |
an atomic vector |

`to` |
an atomic vector of the same mode and length as |

`domain` |
an atomic vector of the same mode as |

`strict` |
logical. If |

Pairs `(from[i], to[i])`

can be though of either as elements of
a relation on a set or as edges in a directed graph.
This function finds one total order on the domain (nodes of the graph)
that is consistent with the relation (graph) if one exists (that is if the
graph is directed).

A vector that is a reordering of `domain`

so that every element of
`from`

appears in the value before the corresponding element of `to`

.

Throws an error if there is no consistent total order (the graph has a cycle).

1 2 3 4 5 |

pooh documentation built on May 29, 2017, 5:43 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.