def generate_chip_id(g, method='chip_id_simple'):
    """
    Generates a ``chip_id`` field on each node based a dedicated scheme

    """
    for node in g.nodes():
        if 'chip_id' in g.node[node]:
            continue
        g.node[node]['chip_id'] = globals()[method](g, node)
