Make graph constructor package-private
Nevermind, seems there's an API here!