Large Modification to Graph Algorithm.  Need to change parser