Changed resilient to resilNode (for node failures) and added resilEdge (for edge failures), added analysis functions for both.