@staticmethod
def parse_target_node(node, graph):
    if node.startswith('0x'):
        ret = ('Node' + node)
        assert (ret in graph.nodes)
        return ret
    else:
        for other_id in graph.nodes:
            other = graph.nodes[other_id]
            if (other.node_id == int(node)):
                return other_id
@staticmethod
def parse_target_node(node, graph):
    if node.startswith('0x'):
        ret = ('Node' + node)
        assert (ret in graph.nodes)
        return ret
    else:
        for other_id in graph.nodes:
            other = graph.nodes[other_id]
            if (other.node_id == int(node)):
                return other_id