def __get_num_of_edge_in_region(num_of_nodes, directed, percentage):
    """The number of edges will be equal to a percentage of the edges in a clique"""
    edges_in_clique = num_of_nodes * (num_of_nodes - 1) / 2
    num_of_edges = int(round(edges_in_clique * percentage))
    if directed:
        num_of_edges = num_of_edges * 2
    return num_of_edges
