pnnl / HyperNetX

Python package for hypergraph analysis and visualization.
https://hypernetx.readthedocs.io
Other
500 stars 86 forks source link

AttributeError: module 'hypernetx.algorithms.hypergraph_modularity' has no attribute 'hypergraph_modularity' #119

Closed MCDalvean closed 4 weeks ago

MCDalvean commented 11 months ago

Thanks for this library.

One issue I am having a the moment is the absence of 'hypergraph_modularity' as per the following error: AttributeError: module 'hypernetx.algorithms.hypergraph_modularity' has no attribute 'hypergraph_modularity'.

The various imports have been fulfilled: import pandas as pd import numpy as np import pickle import random

import igraph as ig import hypernetx as hnx import hypernetx.algorithms.hypergraph_modularity as hmod import hypernetx.algorithms.generative_models as gm

Any assistance on this would be greatly appreciated.

bonicim commented 8 months ago

@MCDalvean The hypergraph_modularity module does not have a 'hypergraph_modularity' attribute, but it does have a modularity attribute. Can you please describe how to reproduce this error?

bonicim commented 4 weeks ago

Resolved in v2.3.2.