Break cycles to produce a DAG Given a set of arcs of a directed graph, if the arcs contain a cycle, break the cycle by reversing low probability arcs.
1 | break_cycles(arc_list, probabilities = NULL)
|
arc_list |
a list of arcs/edges from a directed graph structure |
probabilities |
associated with the arcs. The algorithm will prioritize low probability edges for reversal. |
white_list |
a list of arcs/edges that are not to be broken. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.