fix shortest_path, need new signal interface
merge from wei/signal_enhance
fix shortest_path
Merge pull request #36 from thinxer/shortest_path_fix

fix shortest_path, need new init interface