Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
252 views
in Technique[技术] by (71.8m points)

python - how to use infomap community detection using cdlib

I have installed cdlib for community detection and tried to use infomap to get the communities from a networkx graph

from cdlib import algorithms
import networkx as nx
G = nx.karate_club_graph()
coms = algorithms.infomap(G)

but I got this error message:

Traceback (most recent call last):
File "C:Usersadesktop", line 686, in infomap
    raise ModuleNotFoundError("Optional dependency not satisfied: install package wurlitzer to use infomap.")
ModuleNotFoundError: Optional dependency not satisfied: install package wurlitzer to use infomap.

After that I installed wurlitzer, and infomap but the problem persists

question from:https://stackoverflow.com/questions/66065773/how-to-use-infomap-community-detection-using-cdlib

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...