all_toposorts | R Documentation |
Some toporanga graphs can be topologically sorted in many ways, but arrange
will generate only one, random order.
This function allows to list all of them.
Use sample_toposort
to fairly sample a single toposort.
all_toposorts(x, ..., limit = Inf)
x |
a |
... |
ignored. |
limit |
maximal number of permutations returned; function errors when exhausted. |
A list of possible orderings, in a form of vectors of agent IDs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.