finished adding input for number of patterns for the graph to contain