Description Usage Arguments Value Author(s) References Examples
View source: R/degreeDistribution.R
This methods calculates the degree distribution of a given graph.
1 | degreeDistribution(g, deg = NULL)
|
g |
a graph as a graphNEL object. |
deg |
the distance matrix of the graph. If the parameter is empty the distance matrix will be calculated within the function. |
This methods returns the degree distribution
Laurin Mueller <laurin@eigenlab.net>
Skorobogatov V.A. and Dobrynin A.A., Metric analysis of graphs, match, pp. 105-151, 1988.
1 2 3 4 5 | library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)
degreeDistribution(g)
|
Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: ‘BiocGenerics’
The following objects are masked from ‘package:parallel’:
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from ‘package:stats’:
IQR, mad, sd, var, xtabs
The following objects are masked from ‘package:base’:
anyDuplicated, append, as.data.frame, basename, cbind, colnames,
dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which.max, which.min
Loading required package: RBGL
Loading required package: combinat
Attaching package: ‘combinat’
The following object is masked from ‘package:utils’:
combn
Attaching package: ‘QuACN’
The following object is masked from ‘package:graph’:
adjacencyMatrix
deg
3 4 5 7
2 2 2 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.