<｜begin▁of▁sentence｜>### Instruction:
Given the Les Miserables social network graph, which you can read from a GML file named 'lesmis.gml', can you use the Louvain algorithm in cdlib to perform community detection? And can you plot the community graph using the 'plot_community_graph' function provided by cdlib?
### Response:
import networkx as nx
from cdlib import algorithms, viz

# Read the Les Miserables graph
G = nx.read_gml('lesmis.gml')

# Detect communities using the Louvain algorithm
communities = algorithms.louvain(G)

# Plot the community graph
viz.plot_community_graph(G, communities, figsize=(10, 10), node_size=100, plot_overlaps=False, plot_labels=False, cmap='Pastel2')
<|EOT|>
