restore graph_alignment.py