Learn R Programming

LoopAnalyst (version 1.1-1)

enumerate.paths: Enumerates all Paths from i to j in a Community Matrix

Description

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.

Usage

enumerate.paths(CM,i,j)

Arguments

CM
A community matrix.
i,j
variables in the community matrix CM. Variables may be specified by their names or numbers (i.e. the row/column number corresponding to a specific variable).

Value

  • A list of paths.

Details

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.

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

Run this code
## assess community matrix
data(community.matrix)
enumerate.paths(community.matrix,2,5)

Run the code above in your browser using DataLab