Changed over Undirected class and IO to match what I had been doing.  Changed the string parameter to a type of any.