Note that the order of the rows and columns of the
matrices in this module correspond to the order in
which nodes/edges are added to the hypergraph or
simplicial complex. If the node and edge IDs are
able to be sorted, the following is an example to sort
by the node and edge IDs.
weighted (bool, optional) – whether or not to use hyperedge weights, by default False (every edge weighted as 1).
sparse (bool, optional) – whether or not the laplacian is sparse, by default True
index (bool, optional) – whether to return a dictionary mapping IDs to rows, by default False
Returns:
array – csr_array if sparse and if not, a numpy ndarray
dict – a dictionary mapping node IDs to rows and columns
if index is True.
Raises:
XGIError – If there are isolated nodes.
References
“Learning with Hypergraphs: Clustering, Classification, and Embedding”
by Dengyong Zhou, Jiayuan Huang, Bernhard Schölkopf
Advances in Neural Information Processing Systems (2006)