Nothing
#' Degrees of nodes
#'
#' @description Collect the degrees for all nodes in a network.
#' @param net The input network.
#' @details Obtain the degrees for all nodes.
#' @return A vector.
#' @author Xu Dong, Nazrul Shaikh.
#' @examples \dontrun{
# x <- net.erdos.renyi.gnp(1000, 0.01)
#' x.deg <- degree.collect(x)
#' summary(x.deg)}
#' @export
degree.collect <- function(net){
lengths(net)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.