rank.nodes:
rank nodes based on the inward links/outward links/both links
Description
rank each node in the graph based on their connection status with other nodes,
the standard is the inward/outward link numbers.
Usage
rank.nodes(gemat, type = "both")
Arguments
gemat
standard square graph matrix
type
if type="both", the function will rank the nodes based on total link number, by
counting both inward and outward links for each node;
if type="in", the function will rank the nodes based on inward link number for each node;
if type="out", the function will rank the nodes based on outward link number for each node;
Value
return the sorted node vector in decreasing form with names showing the nodes,while
the vector elements are the link numbers.
References
Chen Y (2012) loop: an R package for performing decomposition of weighted
directed graphs, food web analysis and flexible network plotting. Submitted.