Updated code 20130725

added spreading with respect to the graph the previous was just BFS