<｜begin▁of▁sentence｜>### Instruction:
Given the Word adjacencies graph which you can read from a GML file named adjnoun.gml, can you use the Louvain method in cdlib to perform community detection? And can you compute the link modularity to evaluate the quality of the detected communities?
### Response:
import networkx as nx
from cdlib import algorithms, evaluation

g = nx.read_gml('adjnoun.gml')
communities = algorithms.louvain(g)
link_modularity = evaluation.link_modularity(g, communities)

print(link_modularity.score)
<|EOT|>
