shortest.chain: find out the food chain with shortest length among all food...

Description Usage Arguments Author(s) References See Also Examples

View source: R/loop.R

Description

not including self-loop (i.e., the node itself as a chain)

Usage

1
shortest.chain(gemat, sp)

Arguments

gemat

standard square graph matrix

sp

the node/species you want to search

Author(s)

Youhua Chen <[email protected]>

References

Chen Y (2012) loop: an R package for performing decomposition of weighted directed graphs, food web analysis and flexible network plotting. Submitted.

See Also

longest.chain, largest.weight, smallest.weight, lclw

Examples

1
2
mat=matrix(c(0,5,3,7,0,5,0,8,0,4,3,8,0,1,6,7,0,1,0,2,0,4,6,2,0),5,5)
shortest.chain(gemat=mat,sp=4)

loop documentation built on May 29, 2017, 11:20 p.m.