Learn R Programming

HyperG (version 1.0.0)

horder: The number of vertices, edges and statistics of the hypergraph.

Description

This returns the number of vertices and hyper-edges, and similar statistics, for a hypergraph.

Usage

hnames(h)
horder(h)
hsize(h)
edge_orders(h)

Arguments

h

a hypergraph.

Value

a named vector of vertics, or the names of the vertices. Order refers to the number of vertices, size to the number of hyper-edges. The edge_orders function returns the number of vertices in each of the hyper-edges. In a simple graph, this would always be 2.

See Also

gorder, gsize, hrank.

Examples

Run this code
# NOT RUN {
   h <- hypergraph_from_edgelist(list(3:7,8:12,c(1,3,9)))
	horder(h)
	hsize(h)
	hnames(h)
# }

Run the code above in your browser using DataLab