Implementations of two kinds of graph storages.