Comments (2)
Solved in 0e67e51
Thanks for the info.
from graphriccicurvature.
I still face the same issue (installation from scratch on Colab with both pip
and git clone
gives the same error )
orc = OllivierRicci(G, alpha=0.5, verbose="INFO")
orc.ricci_community()
Traceback
INFO:GraphRicciCurvature:Ricci flow not detected yet, run Ricci flow with default setting first...
INFO:GraphRicciCurvature:No ricciCurvature detected, compute original_RC...
INFO:GraphRicciCurvature:0.258078 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 0 ===
INFO:GraphRicciCurvature:0.335991 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 1 ===
INFO:GraphRicciCurvature:0.604810 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 2 ===
INFO:GraphRicciCurvature:0.650828 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 3 ===
INFO:GraphRicciCurvature:0.727168 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 4 ===
INFO:GraphRicciCurvature:0.528388 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 5 ===
INFO:GraphRicciCurvature:0.370375 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 6 ===
INFO:GraphRicciCurvature:0.247215 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 7 ===
INFO:GraphRicciCurvature:0.199036 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 8 ===
INFO:GraphRicciCurvature:0.204243 secs for Ricci curvature computation.
INFO:GraphRicciCurvature: === Ricci flow iteration 9 ===
INFO:GraphRicciCurvature:0.269540 secs for Ricci curvature computation.
INFO:GraphRicciCurvature:4.716530 secs for Ricci flow computation.
INFO:GraphRicciCurvature:Ricci flow detected, start cutting graph into community...
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-39-bb6b5f15049b>](https://msl7zy2js3-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230718-060202-RC00_548938380#) in <cell line: 1>()
----> 1 orc.ricci_community()
2 frames
[/usr/local/lib/python3.10/dist-packages/GraphRicciCurvature/OllivierRicci.py](https://msl7zy2js3-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230718-060202-RC00_548938380#) in ricci_community(self, cutoff_step, drop_threshold)
838 """
839
--> 840 cc = self.ricci_community_all_possible_clusterings(cutoff_step=cutoff_step, drop_threshold=drop_threshold)
841 assert cc, "No clustering found!"
842
[/usr/local/lib/python3.10/dist-packages/GraphRicciCurvature/OllivierRicci.py](https://msl7zy2js3-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230718-060202-RC00_548938380#) in ricci_community_all_possible_clusterings(self, cutoff_step, drop_threshold)
882 logger.info("Ricci flow detected, start cutting graph into community...")
883 cut_guesses = \
--> 884 get_rf_metric_cutoff(self.G, weight=self.weight, cutoff_step=cutoff_step, drop_threshold=drop_threshold)
885 assert cut_guesses, "No cutoff point found!"
886
[/usr/local/lib/python3.10/dist-packages/GraphRicciCurvature/util.py](https://msl7zy2js3-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230718-060202-RC00_548938380#) in get_rf_metric_cutoff(G_origin, weight, cutoff_step, drop_threshold)
96 clustering = {c: idx for idx, comp in enumerate(nx.connected_components(G)) for c in comp}
97 # Compute modularity
---> 98 modularity.append(community_louvain.modularity(clustering, G, weight))
99
100 good_cuts = []
AttributeError: module 'community' has no attribute 'modularity'
from graphriccicurvature.
Related Issues (20)
- RuntimeError and NameError HOT 2
- IndexError: list index out of range HOT 4
- Forman-Ricci curvature computation breaks is graph has more than 1 connected component HOT 1
- I can't install this package(https://github.com/saibalmars/GraphRicciCurvature.git) HOT 3
- NetworkKit attribute issue causes ORC to fail HOT 2
- Clustering stochastic block model graphs HOT 2
- Warning: numerical errors at iteration 0 HOT 1
- RuntimeError HOT 2
- Indexing error when calling compute_ricci_curvature HOT 2
- Ollivier Ricci not working on Windows 10
- IndexError: invalid index to scalar variable HOT 2
- Parameters in the example figure HOT 1
- Balanced forman ricci curvature HOT 1
- Kernel dies on my MacBook and multiprocess not run on Windows 10 HOT 5
- TypeError: 'AtlasView' object does not support item assignment HOT 3
- Visualization of the communities in GraphRicciCurvature Tutorial HOT 1
- Error in Discrete Ricci Curvature tutorial HOT 1
- ricciCurvature_singleEdge() TypeError: 'int' object is not subscriptable HOT 2
- Not compatible with any version of networkX? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphriccicurvature.