DeepHypergraph
DeepHypergraph copied to clipboard
BUG: hg.add_hyperedges can add edges out of vertex index
Clearly, the vertex index in your hypergraph is larger than the maximum number of vertices: 31 > num_v=21. Please check your edge_list data. We will add the vertex index verification to guarantee each vertex in hyperedge is no larger than the maximum number of vertices in the next version DHG.
Could function for node type transformation, I mean ('str' -> 'int'), be added before constructing the hyperedges?
We provide some util functions for transforming 'str', and 'int' into an ordered and continuous range. The input can be an edge list or an adjacency list. The structure can be a simple graph or a bipartite graph. Maybe these functions can help you. https://deephypergraph.readthedocs.io/en/0.9.2/api/utils.html#dhg.utils.remap_edge_list
Looks good! I will try to use these functions.