Changed the graph underlying the STN to a multi graph to allow more memory efficient cloning.