Add arc graph

This is Ben's (@Ekulf) code.