Erlang port of Prismatic's graph package.