Previous topic

fnss.topologies.topology.rename_edge_attribute

Next topic

fnss.topologies.topology.read_topology

fnss.topologies.topology.rename_node_attribute

rename_node_attribute(topology, old_attr, new_attr)[source]

Rename all nodes attributes with a specific name to a new name

Parameters :

topology : Topology

The topology object

old_attr : any hashable type

Old attribute name

new_attr : any hashable type

New attribute name