hdegree {HyperG} | R Documentation |
Degrees of a hypergraph.
Description
The degree of a vertex in a hypergraph is the number of hyper-edges containing the vertex.
Usage
hdegree(h)
plotDegreeDistribution(h, xlab="Degree",
ylab="Density",
add.line=FALSE,
lty=2,lwd=1,line.col=1,
...)
Arguments
h |
a hypergraph. For |
xlab , ylab |
axis labels. |
add.line |
logical. Whether to add a regression line to the plot. |
lty , lwd , line.col |
plotting controls for the line. |
... |
arguments passed to |
Details
Returns a vector of the number of (hyper-)edges containing each vertex.
The plot.hdegree.distributions
plots the distribution of degrees on a
log-log scale, optionally adding a regression line.
Value
a vector of degrees.
Author(s)
David J. Marchette dmarchette@gmail.com
See Also
Examples
set.seed(452)
h <- sample_gnp_hypergraph(100,p=.1)
hdegree(h)
[Package HyperG version 1.0.0 Index]