The integrity of a graph is defined as , where denotes the order of the largest component in the graph . This is a better parameter to measure the stability of a network, as it takes into account both the amount of work done to damage the network and how badly the network is damaged. Computationally, it belongs to the class of intractable problems known as NP-hard. In this paper, we develop a heuristic algorithm to determine the integrity of a graph. Extensive computational experience on randomly generated graphs ranging from to densities and from to vertices has shown that the proposed algorithm is very effective.