def is_valid_ipv4(ip):
    try:
        socket.inet_pton(socket.AF_INET, ip)
    except socket.error:
        return False
    return True
Return True if G is aperiodic.
dataset/ETHPy150Open openstack/swift/swift/common/ring/utils.py/is_valid_ipv4--crossover with--dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/dag.py/is_aperiodic