Can limit the number of nodes that are included in graph

Uses the first n nodes in the list