text_html_output_1.png
import networkx as nx

import pandas as pd

nodes = pd.read_csv('../input/tolokers/nodes.tsv', sep='\t', index_col='id')
nodes

edges = pd.read_csv('../input/tolokers/edges.tsv', sep='\t')
edges

G = nx.Graph()
G.add_edges_from(edges.values)

radius = nx.radius(G)
diameter = nx.diameter(G)

print('Radius: ', radius)
print('Diameter: ', diameter)