[Modify] modify the algorithms to add edges of existing nodes
Merge pull request #11 from Hyiiego/master

[Modify] modify the algorithms to add edges of existing nodes