Refactor common graph code
Fix a 2.10 compile issue
fix dumb cast bug (need to remove casts)
consider values with 0 which are dropped by MapAlgebra
Merge pull request #243 from twitter/graph-walks

Refactor common graph code