moving to use in memory graph and not hitting db when calculating all paths