# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python [conda root]
#     language: python
#     name: conda-root-py
# ---

# !python --version

import json
from pprint import pprint

with open('data/goWOgenes.cyjs') as f:    
    tree = json.load(f)

# +
tree.keys()

pprint(tree['elements']['nodes'][1])

nodes = tree['elements']['nodes']

# +
bc = map(lambda x : x['data']['BetweennessCentrality'], nodes)
cc = map(lambda x : x['data']['ClosenessCentrality'], nodes)

# print(min(bc))
print(max(bc))
# print(min(cc))
print(max(cc))

StarcoderdataJupyterScriptsDedupFiltered