<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def isa_to_graph(isa: ISA) -> nx.Graph: """ Construct a NetworkX qubit topology from an ISA object. This discards information about supported gates. :param isa: The ISA. """

    return nx.from_edgelist(e.targets for e in isa.edges if not e.dead)