R/net.hubs.R

net.hubs <-
function(theta,nhubs=10)
{
	degree = net.degree(theta)
	K = length(degree)
	hubs = list()
	for(k in 1:K)
	{
		order = order(degree[[k]],decreasing=TRUE)
		hubs[[k]] = degree[[k]][order[1:nhubs]]
	}
	return(hubs)
}

Try the JGL package in your browser

Any scripts or data that you put into this service are public.

JGL documentation built on May 2, 2019, 12:40 p.m.