implement function to load topology weight in load_topo_weight.py