A compiler for a small graph processing language