graph manipulation functions for replacing nodes
Merge branch 'master' of https://github.com/ekg/gssw