tvayer / PSCN

A python implementation of Patchy-San Convolutional Network for Graph
42 stars 12 forks source link

something about pscn.py #5

Open WangShitao6 opened 5 years ago

WangShitao6 commented 5 years ago

hello, Thanks very much! I have learned a lot from your work. For your Function"rank_label_wrt_dict" at pscn.py, i have another thought. We can make 'distance_to_root' and 'betweenness_centrality' as the attributes of nodes in subgraph.Then,the code like this:

iterator = G.nodes(data=True) sorted(iterator,key=lambda item:(item[1]['distance_to_root'],-item[1]['betweenness_centrality']))

What do you think about this thought?Could you give me some advice.