fixed some issues with graph based on test.
restructued to include ide project files from intellij and tests for graph. easier to include all this than try to maintain it seperately.