Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/enumerate.paths.R

Enumerates a list of all paths from variable i to variable j in a community matrix after first validating that `CM`

is a community matrix.

1 | ```
enumerate.paths(CM,i,j)
``` |

`CM` |
A community matrix. |

`i,j` |
variables in the community matrix |

The returned list of paths contains each path from i to j in `CM`

in breadth-first search order). Each element in a path is represented by its variable number.

A list of paths.

Alexis Dinno https://www.alexisdinno.com/LoopAnalyst/

Puccia, C. J. and Levins, R. (1986) *Qualitative Modeling of Complex Systems: An Introduction to Loop Analysis and Time Averaging*. Cambridge: Harvard University Press.

1 2 3 | ```
## assess community matrix
data(cm.levins)
enumerate.paths(cm.levins,2,4)
``` |

```
Loading required package: nlme
[[1]]
[1] 2 4
```

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.