load topo weight function, unfinished, to be continued!