Describe the bug
Running network_p2p with option "leiden" results in a error:
Error in py_module_import(module, convert = convert) :
ModuleNotFoundError: No module named 'leidenalg'
To Reproduce
Steps to reproduce the behaviour:
- Install latest version of the package: install.packages("wpa")
- Simulate p2p network: p2p_data <- p2p_data_sim(size = 50)
- Run Leiden plot: p2p_data %>% network_p2p(display = "leiden", path = NULL, return = "plot")
Screenshots

Additional context
Testing modules <- reticulate::py_module_available("leidenalg") shows that the module was not installed.
It can be solved by running py_install("python-igraph") and py_install("leidenalg") and then running our code
An additional step may be required in the code to solve the issue?
Describe the bug
Running network_p2p with option "leiden" results in a error:
Error in py_module_import(module, convert = convert) :
ModuleNotFoundError: No module named 'leidenalg'
To Reproduce
Steps to reproduce the behaviour:
Screenshots

Additional context
Testing modules <- reticulate::py_module_available("leidenalg") shows that the module was not installed.
It can be solved by running py_install("python-igraph") and py_install("leidenalg") and then running our code
An additional step may be required in the code to solve the issue?