<｜begin▁of▁sentence｜>### Instruction:
Given the C. elegans neural network graph which you can read from a GML file named celegansneural.gml, can you use the Louvain method in cdlib to perform community detection? And can you compute the modularity density of the detected communities?
### Response:
import networkx as nx
from cdlib import algorithms, evaluation

G = nx.read_gml('celegansneural.gml')

communities = algorithms.louvain(G)
modularity_density = evaluation.modularity_density(G, communities)

print(modularity_density.score)
<|EOT|>
