<｜begin▁of▁sentence｜>### Instruction:
Given the High-energy theoretical physics collaborations Graph, which you can read from a GML file named hep-th.gml, can you use the LFM algorithm with alpha set to 1.0 in cdlib to perform community detection? And can you create a JSON representation of the discovered community structure?
### Response:
import networkx as nx
from cdlib import algorithms

# Reading the high-energy theory collaborations graph
G = nx.read_gml('hep-th.gml')

# Applying the LFM algorithm with alpha set to 1 for community detection
communities = algorithms.lfm(G, alpha=1.0)

# Generating a JSON representation of the resulting NodeClustering object
communities_json = communities.to_json()

print(communities_json)
<|EOT|>
