Returns true if the op is the end of a while-loop creating a cycle.
(op)
| 66 | list of nodes or the cycle of nodes found. |
| 67 | """ |
| 68 | def _is_loop_edge(op): |
| 69 | """Returns true if the op is the end of a while-loop creating a cycle.""" |
| 70 | return op.type in ['NextIteration'] |
| 71 | |
| 72 | def _in_op_degree(op): |
| 73 | """Returns the number of incoming edges to the given op. |
no outgoing calls
no test coverage detected