You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for l in hedge_list:
for i in range(len(l)):
for j in range(i+1, len(l)):
T[nodes.index(l[i]), nodes.index(l[j])] += len(l) - 1
T[nodes.index(l[j]), nodes.index(l[i])] += len(l) - 1
Changing to this did work, though I would test it further just in case
I was trying to use the random walk function which depends on the transition_matrix matrix function in the dynamics submodule.
I got the error:
when I ran adjacency_matrix(H) where H is the hypergraph from 'test_data/workplace
I then dug further and noticed that in the hedge_list list in transition_matrix, the first edge printed out is (492, 938).
For the code in transition_matrix:
T[l[i],l[j]] , would index T[492, 938]. T is only size 92 x 92, and thus this would be invalid.
My guess is that an easy fix for this is to find the index of the value l[i] and l[j] would solve this. I will try it on my end and report back
The text was updated successfully, but these errors were encountered: