Iterative algorithms for calculating network reliablility