Path 1: 15 calls (1.0)

1def _open_graph(self) -> None:
2        """Emit the header lines."""
3        self.emit(f'digraph "{self.title}" {{')
4        if self.layout:
5            self.emit(f"rankdir={self.layout.value}")
6        if self.charset:
7            assert (
8                self.charset.lower() in ALLOWED_CHARSETS
9            ), f"unsupported charset {self.charset}"
10            self.emit(f'charset="{self.charset}"')