Fast in-memory graph structure