Learn R Programming

HyperG (version 1.0.0)

hdegree: 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.

Value

a vector of degrees.

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.

See Also

degree, degree.distribution.

Examples

Run this code
# NOT RUN {
   set.seed(452)
	h <- sample_gnp_hypergraph(100,p=.1)
	hdegree(h)
# }

Run the code above in your browser using DataLab