<｜begin▁of▁sentence｜>### Instruction:
Given the Condensed Matter collaborations 2005 graph, which you can read from a GML file named cond-mat-2005.gml, how do you convert the loaded networkx graph to an equivalent igraph graph object?
### Response:
import networkx as nx
from cdlib import convert_graph_formats

# Load a networkx graph from a GML file
g = nx.read_gml('cond-mat-2005.gml')

# Convert the networkx graph to an igraph graph objectig_graph = convert_graph_formats(g, desired_format=ig.Graph, directed=False)

# Now `ig_graph` is an igraph graph object
print(type(ig_graph))
<|EOT|>
