Added initial graph adding functionality for testing purposes.