equal
deleted
inserted
replaced
113 for ecol, eid in enumerate(seen): |
113 for ecol, eid in enumerate(seen): |
114 if eid in next: |
114 if eid in next: |
115 edges.append((ecol, next.index(eid), colors[eid])) |
115 edges.append((ecol, next.index(eid), colors[eid])) |
116 elif eid == cur: |
116 elif eid == cur: |
117 for p in parents: |
117 for p in parents: |
118 edges.append((ecol, next.index(p), colors[p])) |
118 edges.append((ecol, next.index(p), color)) |
119 |
119 |
120 # Yield and move on |
120 # Yield and move on |
121 yield (cur, type, data, (col, color), edges) |
121 yield (cur, type, data, (col, color), edges) |
122 seen = next |
122 seen = next |