<｜begin▁of▁sentence｜>### Instruction:
Given the novel Les Misérables character relationship graph which is stored in 'lesmis.gml', can you apply the DEMON algorithm using cdlib to perform community detection? The merging threshold should be 0.25 and the minimum community size should be 3.
### Response:
import networkx as nx
from cdlib import algorithms

G = nx.read_gml('lesmis.gml')
coms = algorithms.demon(G, epsilon=0.25, min_com_size=3)
<|EOT|>
