Refactor common node code into getNode function. Get Person models for all persons in the graph.