Recursively unblock and remove nodes from B[thisnode].
(thisnode)
| 817 | |
| 818 | # Jon Olav Vik, 2010-08-09 |
| 819 | def _unblock(thisnode): |
| 820 | """Recursively unblock and remove nodes from B[thisnode].""" |
| 821 | if blocked[thisnode]: |
| 822 | blocked[thisnode] = False |
| 823 | while B[thisnode]: |
| 824 | _unblock(B[thisnode].pop()) |
| 825 | |
| 826 | def circuit(thisnode, startnode, component): |
| 827 | closed = False # set to True if elementary path is closed |