Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodes in a Hypergarph via H.nodes #90

Open
khizer-hayat opened this issue Jul 26, 2022 · 1 comment
Open

Nodes in a Hypergarph via H.nodes #90

khizer-hayat opened this issue Jul 26, 2022 · 1 comment
Labels
active Work in progress bug Something isn't working

Comments

@khizer-hayat
Copy link

khizer-hayat commented Jul 26, 2022

I tried to generate a hypergraph using node neighborhood information from a matrix K of size |N| x |N|. Using the simple graph edges list, if the length (distance) of two given nodes is less than or equal to k, then I put 1 in the K matrix, 0 otherwise. 1 denotes that the two given nodes are neighbors, and 0 denotes that nodes are not neighbors. After generating the K matrix, I used it to represent hyperedges where each row of K represents the neighborhood of a particular node. (a hyperedge).

The problem is, after generating a hypergraph, it shows the correct number of hyperedges using the H.edges method, however, it gives the wrong number of nodes using the H.nodes method. The total nodes are very less than the total nodes given by the H.nodes method,

Also, I tried the example graph given in the documentation of the library. It has 13 nodes and 8 hyperedges. H.nodes and H.edges methods show the correct number of nodes and edges for this graph.

Can't I use the defined K matrix for hypergraph generation?

@madelynshapiro
Copy link
Collaborator

Thank you for raising this issue. Would you please share your code so that we can reproduce your error and provide further support?

bonicim added a commit that referenced this issue May 18, 2023
Merge in HYP/hypernetx from develop to master

* commit '9b57c8fea17e129883a71f8015167e23a5040f48':
  Remove unnecessary files; modify RTD config
@bonicim bonicim added the bug Something isn't working label May 18, 2023
@bonicim bonicim added the active Work in progress label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
active Work in progress bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants