Return the list of operations in the graph. You can modify the operations in place, but modifications to the list such as inserts/delete have no effect on the list of operations known to the graph. This method may be called concurrently from multiple threads. Returns: A
(self)
| 3707 | (type(obj).__name__, types_str)) |
| 3708 | |
| 3709 | def get_operations(self): |
| 3710 | """Return the list of operations in the graph. |
| 3711 | |
| 3712 | You can modify the operations in place, but modifications |
| 3713 | to the list such as inserts/delete have no effect on the |
| 3714 | list of operations known to the graph. |
| 3715 | |
| 3716 | This method may be called concurrently from multiple threads. |
| 3717 | |
| 3718 | Returns: |
| 3719 | A list of Operations. |
| 3720 | """ |
| 3721 | if self._finalized: |
| 3722 | return list(self._nodes_by_id.values()) |
| 3723 | |
| 3724 | with self._lock: |
| 3725 | return list(self._nodes_by_id.values()) |
| 3726 | |
| 3727 | def get_operation_by_name(self, name): |
| 3728 | """Returns the `Operation` with the given `name`. |