(self, graph, node)
| 93 | self.condition = condition # TODO: not implemented yet |
| 94 | |
| 95 | def match(self, graph, node): |
| 96 | if isinstance(node, list): |
| 97 | return [], None |
| 98 | if self.op == node.op: |
| 99 | following = graph.outgoing(node) |
| 100 | if len(following) == 1: |
| 101 | following = following[0] |
| 102 | return [node], following |
| 103 | else: |
| 104 | return [], None |
| 105 | |
| 106 | |
| 107 | class SerialPattern(): |