def is_distance_regular(G):
    try:
        a=intersection_array(G)
        return True
    except nx.NetworkXError:
        return False
Returns True if the graph is distance regular, False otherwise.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/distance_regular.py/is_distance_regular