fix LoadGraph bug, update analyze_graph