2017-08-16 94 views

回答

1

用途:

reduce(lambda x, y: x*y, list(YourGraph.edges_iter(data='weight', default=1))) 

這將成倍所有的邊權重的圖形。