| 62 | return self.label() |
| 63 | |
| 64 | class Thread(Node): |
| 65 | scheme = { |
| 66 | 'fillcolor': 'lightcyan4', |
| 67 | 'fontcolor': 'yellow', |
| 68 | 'shape': 'oval', |
| 69 | 'fontsize': 10, |
| 70 | 'width': 0.3, |
| 71 | 'color': 'black', |
| 72 | } |
| 73 | |
| 74 | def __init__(self, label, **kwargs): |
| 75 | self.real_label = label |
| 76 | super().__init__( |
| 77 | label=f'thr-{next(tids)}', |
| 78 | pos=0, |
| 79 | ) |
| 80 | |
| 81 | class Formatter(GraphFormatter): |
| 82 |
no outgoing calls