compatible with networkx1.9
sampling based on likelyhood
sampling based on likelyhood
max_likelyhood estimation