Basic graph implementstions.