Abstracting the graph library away.