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

Description Usage Arguments Author(s) References See Also Examples

View source: R/loop.R

Description

Sometimes the longest chain is not unique, thus will return all candidates with longest length

Usage

1
longest.chain(gemat, sp)

Arguments

gemat

standard square graph matrix

sp

the node/species you want to search

Author(s)

Youhua Chen <haydi@126.com>

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

shortest.chain, largest.weight, smallest.weight, lclw

Examples

1
2
3
4
5
6
#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)
#search for species 3
#lclw(gemat=mat,sp=3)
#longest chain isn't necessary to have largest weights
#largest.weight(gemat=mat,sp=3)
#longest.chain(gemat=mat,sp=3)


loop documentation built on May 19, 2017, 10 p.m.
Search within the loop package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.