<｜begin▁of▁sentence｜>### Instruction:
Given the Power Grid Graph which you can read from a gml file named power.gml, can you use both Louvain and Leiden methods in cdlib to perform community detection and then compute the Overlapping Normalized Mutual Information (ONMI) using the McDaid et al. method to measure the similarity between the two resulting community structures?
### Response:
import networkx as nx
from cdlib import algorithms, evaluation

# Reading the power grid graph
G = nx.read_gml('power.gml')

# Detecting communities using the Louvain method
louvain_communities = algorithms.louvain(G)

# Detecting communities using the Leiden method
leiden_communities = algorithms.leiden(G)

# Computing the Overlapping Normalized Mutual Information
onmi_result = evaluation.overlapping_normalized_mutual_information_MGH(louvain_communities, leiden_communities)
print(onmi_result.score)
<|EOT|>
