Get `Nodes` of the given `Layer`.
(self, layer_id)
| 706 | raise ValueError("layer id beyond the layers length.") |
| 707 | |
| 708 | def layer_nodes(self, layer_id): |
| 709 | """ Get `Nodes` of the given `Layer`. |
| 710 | """ |
| 711 | layer_id -= 1 |
| 712 | if isinstance(self.layers, list) and layer_id < len(self.layers): |
| 713 | return self.layers[layer_id].nodes |
| 714 | else: |
| 715 | raise ValueError("layer id beyond the layers length.") |
| 716 | |
| 717 | def layer_edges(self, layer_id): |
| 718 | """ Get `Edges` of the given `Layer`. |
no outgoing calls