infra/graph: Introduce a basic implementation of a Graph.