(self, graph, *args, **kwargs)
| 291 | # Dictionary values can be accessed by Node as well as by node id. |
| 292 | class nodedict(dict): |
| 293 | def __init__(self, graph, *args, **kwargs): |
| 294 | dict.__init__(self, *args, **kwargs) |
| 295 | self.graph = graph |
| 296 | def __contains__(self, node): |
| 297 | return dict.__contains__(self, self.graph.get(node, node)) |
| 298 | def __getitem__(self, node): |