degree: Degrees of a hypergraph.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

The degree of a vertex in a hypergraph is the number of hyper-edges containing the vertex.

Usage

1
2
3
4
5
6
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

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

HyperG documentation built on March 4, 2021, 5:06 p.m.

Related to degree in HyperG...