logical. Whether to return a graph instead of a hypergraph.
Value
a hypergraph or graph.
Details
Each vertex is in one-to-one correspondence with the points (rows)
of x.
For each vertex, the k-closest vertices and itself form a hyper-edge.
If reduce=TRUE reduntant hyper-edges (those contained in other
hyper-edges) are removed. If as.graph=TRUE, reduce is
ignored and the incidence matrix is treated as an adjacency matrix,
returning a (directed) igraph graph.