fix the bug of reappear canvas
remove multiple edges between the same pair of node in callgraph