enumerate.loops: Enumerates all Loops in a (-1, 0, 1) Matrix

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

View source: R/enumerate.loops.R

Description

Enumerates a list of all loops in a (-1, 0, 1) matrix.

Usage

1

Arguments

CM

A (-1, 0 1) matrix.

Details

The returned list of loops contains each loop in CM in breadth-first search order). Each element in a loop is represented by its variable number, and the first element also terminates each loop.

Value

A list of loops.

Author(s)

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

References

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

See Also

make.cm.

Examples

1
2
3
## assess community matrix
data(submatrix)
enumerate.loops(submatrix)

Example output

Loading required package: nlme
[[1]]
[1] 1 1

[[2]]
[1] 1 2 1

[[3]]
[1] 2 2

[[4]]
[1] 2 4 2

[[5]]
[1] 3 3

[[6]]
[1] 3 4 3

[[7]]
[1] 4 4

[[8]]
[1] 5 5

LoopAnalyst documentation built on May 2, 2019, 5:14 a.m.