| 41 | |
| 42 | |
| 43 | class FlowGraphEdge: |
| 44 | def __init__(self, branch_type, source, target, points, back_edge, style): |
| 45 | self.type = BranchType(branch_type) |
| 46 | self.source = source |
| 47 | self.target = target |
| 48 | self.points = points |
| 49 | self.back_edge = back_edge |
| 50 | self.style = style |
| 51 | |
| 52 | def __repr__(self): |
| 53 | return "<%s: %s>" % (self.type.name, repr(self.target)) |
| 54 | |
| 55 | def __eq__(self, other): |
| 56 | return (self.type, self.source, self.target, self.points, self.back_edge, |
| 57 | self.style) == (other.type, other.source, other.target, other.points, other.back_edge, other.style) |
| 58 | |
| 59 | def __hash__(self): |
| 60 | return hash((self.type, self.source, self.target, self.points, self.back_edge, self.style)) |
| 61 | |
| 62 | |
| 63 | class EdgeStyle: |
no outgoing calls
no test coverage detected