A WMR colleague tried running a script version of the create_graph_file on a larger mesh and noticed a long runtime. I think we can save time by creating a data structure of the connections and then calling write once.