In memory implementation of the graph model