New techniques for the reliability analysis of complex networks and systems: A graph theoretic approach