# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import collections
import networkx as nx
import matplotlib.pyplot as nzm
# %matplotlib inline
import os
os.listdir()
#read in file
p = nx.read_edgelist('email-Eu-core-temporal-Dept3.txt',create_using=nx.Graph(),nodetype=int)

print(nx.info(p))

#create a layout of fb
pos = nx.kamada_kawai_layout(p)
nzm.figure(figsize=(15,12))
nzm.axis('on')
nx.draw_networkx(p,pos=pos,with_labels=False,node_size=50)

#draw a bar chart of the betwenness centrality
bc = nx.betweenness_centrality(p)
nzm.bar(range(len(bc)),bc.values(),align='center')

nx.eigenvector_centrality(p)



StarcoderdataJupyterScriptsDedupFiltered