allow for multiple infiles in graph.m