/usr/lib64/python3.6/site-packages/matplotlib/font_manager.py:1331: UserWarning: findfont: Font family ['Arial'] not found. Falling back to DejaVu Sans (prop.get_family(), self.defaultFamily[fontext])) Traceback (most recent call last): File "assignment2.py", line 136, in trans= nx.transitivity(G)*100 File "/usr/lib64/python3.6/site-packages/networkx/algorithms/cluster.py", line 400, in transitivity triangles = sum(t for v, d, t, _ in _triangles_and_degree_iter(G)) File "/usr/lib64/python3.6/site-packages/networkx/algorithms/cluster.py", line 400, in triangles = sum(t for v, d, t, _ in _triangles_and_degree_iter(G)) File "/usr/lib64/python3.6/site-packages/networkx/algorithms/cluster.py", line 87, in _triangles_and_degree_iter gen_degree = Counter(len(vs & (set(G[w]) - {w})) for w in vs) File "/usr/lib64/python3.6/collections/__init__.py", line 535, in __init__ self.update(*args, **kwds) File "/usr/lib64/python3.6/collections/__init__.py", line 622, in update _count_elements(self, iterable) File "/usr/lib64/python3.6/site-packages/networkx/algorithms/cluster.py", line 87, in gen_degree = Counter(len(vs & (set(G[w]) - {w})) for w in vs) File "/usr/lib64/python3.6/site-packages/networkx/classes/graph.py", line 458, in __getitem__ return self.adj[n] File "/usr/lib64/python3.6/site-packages/networkx/classes/graph.py", line 336, in adj @property KeyboardInterrupt