Update graph_map.py

Implementing Stalling's folding algorithm.