Graph server in Erlang