subset of implementation for graph database