<｜begin▁of▁sentence｜>### Instruction:
Given the Condensed Matter collaborations 2005 graph which you can read from a gml file named cond-mat-2005.gml, can you use the louvain method in cdlib to perform community detection and compute the number of edges per community node that point outside the cluster?
### Response:
import networkx as nx
from cdlib import algorithms, evaluation

# Read the graph
G = nx.read_gml('cond-mat-2005.gml')

# Perform community detection using the Louvain method
communities = algorithms.louvain(G)

# Compute the expansion score of the detected communities
expansion_score = evaluation.expansion(G, communities)

# Output the expansion score summary
print(expansion_score.score)
<|EOT|>
