Cleaned up Neo4j operations
Added support for distinct graphs