set diff used in the operations for fast execution

testing module of graph operations altered to include testing of failures.