@staticmethod
def _idxs2items(edge_node_table, arr):
    """For the given array, get all edges based on edge node table.

        :param edge_node_table: edge table to be used
        :param arr: a list of indexes to edge table
        :return: edges that correspond to the given index array
        """
    ret = []
    for i in arr:
        ret.append(edge_node_table[i])
    return ret
