a pregel implementation in Erlang using riak_core