Is it possible to set property in all related nodes?

I have "enabled" flag on all my nodes. I disable a node and all nodes in the subgraph by setting the value to false. Is there any easy way to achieve this in OGM or otherwise?