I think you can get all nodes/edges of the current graph using the Nodes
and Edges
properties.
Try this out:
edgeList = graph.Edges
nodeList = graph.Nodes
Afterwards you can iterate over these lists for node in nodeList:
and sort out the elements having the attributes you wanna change, e.g. if node.myAttribute == 42:
.