find out the food chain with largest weights among all food chains that are linked to a given species

Share:

Description

a food chain wtih largest weights mean that the summation of weights for each link of the chain is the largest. Note: the longest food chain (with largest number of nodes) does not necessarily have the largest weight.

Usage

1
largest.weight(gemat, sp)

Arguments

gemat

standard square graph matrix

sp

the node that is evaluated.

Value

return all candidate pathways and related weights

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, longest.chain, smallest.weight, lclw

Examples

1
2
3
#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
#largest.weight(mat,3)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.