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 plotDegreeDistribution it could also be a graph.

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 plot.

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

degree, degree.distribution.

Examples

   set.seed(452)
	h <- sample_gnp_hypergraph(100,p=.1)
	hdegree(h)

[Package HyperG version 1.0.0 Index]