r"""assert that this iterator yields only one node and return it Returns: class:`.GraphNodeBase`: the unique node Raises: ValueError if this iterator does not yield a unique node
(self)
| 731 | return list(self) |
| 732 | |
| 733 | def as_unique(self): |
| 734 | r"""assert that this iterator yields only one node and return it |
| 735 | |
| 736 | Returns: |
| 737 | class:`.GraphNodeBase`: the unique node |
| 738 | |
| 739 | Raises: |
| 740 | ValueError if this iterator does not yield a unique node |
| 741 | """ |
| 742 | (opr,) = self |
| 743 | return opr |
| 744 | |
| 745 | def as_dict(self): |
| 746 | r"""construct an ordered dict to map from node names to objects in |
no outgoing calls