API redesign to allow for alternate graph representations.