Last chance! 50% off unlimited learning
Sale ends in
gden
computes the density of graph g
in stack dat
, adjusting for the type of graph in question.gden(dat, g=NULL, diag=FALSE, mode="digraph")
dat
is a matrix, g
will be ignored.g==NULL
(the default), density is calculated for all graphs in dat
.diag
is FALSE
by default.mode
is set to "digraph" by default.diag
) in the usual fashion.#Draw three random graphs
dat<-rgraph(10,3)
#Find their densities
gden(dat)
Run the code above in your browser using DataLab