Put graph creation in singleton to speed up unit test