import networkx as nx
import time
import heapq
with open('U_tuples.csv', mode='r') as infile:
    G = nx.read_edgelist(infile, delimiter=',', create_using=nx.DiGraph())
UG = G.to_undirected()
dia = nx.diameter(UG)
with open('diameter.txt', mode='wb') as outfile:
    outfile.write('The diameter is: ' + str(dia))

b31bd330ed67b837fa4c229887317e14350ff01a
<mask token>

<mask token>
with open('U_tuples.csv', mode='r') as infile:
    G = nx.read_edgelist(infile, delimiter=',', create_using=nx.DiGraph())
<mask token>
with open('diameter.txt', mode='wb') as outfile:
    outfile.write('The diameter is: ' + str(dia))

<mask token>
with open('U_tuples.csv', mode='r') as infile:
    G = nx.read_edgelist(infile, delimiter=',', create_using=nx.DiGraph())
UG = G.to_undirected()
dia = nx.diameter(UG)
with open('diameter.txt', mode='wb') as outfile:
    outfile.write('The diameter is: ' + str(dia))

import networkx as nx
import time
import heapq
with open('U_tuples.csv', mode='r') as infile:
    G = nx.read_edgelist(infile, delimiter=',', create_using=nx.DiGraph())
UG = G.to_undirected()
dia = nx.diameter(UG)
with open('diameter.txt', mode='wb') as outfile:
    outfile.write('The diameter is: ' + str(dia))
