@staticmethod
def rename_attributes(**kwds):
    """Rename layout attributes.

        In the style dictionary multiple keywords can be used to address
        attributes. These keywords will be converted to an unique key word,
        used in the remaining code.

        ========= =================================
        keys      other valid keys
        ========= =================================
        fixed     fixed_nodes, fixed_vertices,
                  fixed_n, fixed_v
        positions initial_positions, node_positions
                  vertex_positions, n_positions,
                  v_positions
        ========= =================================

        """
    names = {'fixed': ['fixed_nodes', 'fixed_vertices', 'fixed_v',
        'fixed_n'], 'positions': ['initial_positions', 'node_positions',
        'vertex_positions', 'n_positions', 'v_positions'], 'layout_': [
        'layout_']}
    _kwds = {}
    del_keys = []
    for key, value in kwds.items():
        for attr, name_list in names.items():
            for name in name_list:
                if name in key and name[0] == key[0]:
                    _kwds[key.replace(name, attr).replace('layout_', '')
                        ] = value
                    del_keys.append(key)
                    break
    for key in del_keys:
        del kwds[key]
    return {**_kwds, **kwds}
