Yields a list of edges from/to the node.
(self)
| 119 | |
| 120 | @property |
| 121 | def edges(self): |
| 122 | """ Yields a list of edges from/to the node. |
| 123 | """ |
| 124 | return self.graph is not None \ |
| 125 | and [e for e in self.graph.edges if self.id in (e.node1.id, e.node2.id)] \ |
| 126 | or [] |
| 127 | |
| 128 | @property |
| 129 | def weight(self): |