Updates to ToGraph functions
Merge branch 'master' of github.com:snap-stanford/snapr