degree.dist: Plot degree distribution of network

Description Usage Arguments Value Examples

View source: R/degree.dist.R

Description

This function plots the degree distribution of a network in the form of edge list.

Usage

1
degree.dist(edgelist, type = "out")

Arguments

edgelist

The input weighted edge list.

type

Option that indicating whether out- or in-measures to be calculated. The default is "out". The setting is irrelevant for undirected networks, but it must be specified.

Value

Return probability density of the degrees of the specified network.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
edg <- rbind(
c(1,2,4),
c(1,3,2),
c(2,1,4),
c(2,3,4),
c(2,4,1),
c(2,5,2),
c(3,1,2),
c(3,2,4),
c(4,2,1),
c(5,2,2),
c(5,6,1),
c(6,5,1))
degree.dist(edg)

hangxiong/wNetwork documentation built on May 17, 2019, 2:28 p.m.