Path 1: 4 calls (0.5)

1def _open_graph(self) -> None:
2        """Emit the header lines."""
3        self.emit("graph:{\n")
4        self._inc_indent()
5        self._write_attributes(
6            GRAPH_ATTRS,
7            title=self.title,
8            layoutalgorithm="dfs",
9            late_edge_labels="yes",
10            port_sharing="no",
11            manhattan_edges="yes",
12        )
13        if self.layout:
14            self._write_attributes(GRAPH_ATTRS, orientation=ORIENTATION[self.layout])
            

Path 2: 4 calls (0.5)

1def _open_graph(self) -> None:
2        """Emit the header lines."""
3        self.emit("graph:{\n")
4        self._inc_indent()
5        self._write_attributes(
6            GRAPH_ATTRS,
7            title=self.title,
8            layoutalgorithm="dfs",
9            late_edge_labels="yes",
10            port_sharing="no",
11            manhattan_edges="yes",
12        )
13        if self.layout:
14            self._write_attributes(GRAPH_ATTRS, orientation=ORIENTATION[self.layout])