[graph-tool] How to implement graph version of map/reduce