R/net.edges.R

net.edges <-
function(theta)
{
	adj = .make.adj.matrix(theta,separate=TRUE)
	K = length(theta)

	edges = list()
	for(k in 1:K)
	{
		diag(adj[[k]])=0
		gadj = graph.adjacency(adj[[k]],mode="upper")
		edges[[k]] = E(gadj)
	}
	return(edges)
}

Try the fasjem package in your browser

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

fasjem documentation built on May 2, 2019, 9:19 a.m.