    def __init__(self, *argsl, **argsd):
        Graph.__init__(self, *argsl, **argsd)

        self.shape_files = list()
        self.formats = [
            "canon",
            "cmap",
            "cmapx",
            "cmapx_np",
            "dia",
            "dot",
            "fig",
            "gd",
            "gd2",
            "gif",
            "hpgl",
            "imap",
            "imap_np",
            "ismap",
            "jpe",
            "jpeg",
            "jpg",
            "mif",
            "mp",
            "pcl",
            "pdf",
            "pic",
            "plain",
            "plain-ext",
            "png",
            "ps",
            "ps2",
            "svg",
            "svgz",
            "vml",
            "vmlz",
            "vrml",
            "vtx",
            "wbmp",
            "xdot",
            "xlib",
        ]

        self.prog = "dot"

        # Automatically creates all
        # the methods enabling the creation
        # of output in any of the supported formats.
        for frmt in self.formats:

            def new_method(f=frmt, prog=self.prog, encoding=None):
                """Refer to docstring of method `create`."""
                return self.create(format=f, prog=prog, encoding=encoding)

            name = "create_{fmt}".format(fmt=frmt)
            self.__setattr__(name, new_method)

        for frmt in self.formats + ["raw"]:

            def new_method(path, f=frmt, prog=self.prog, encoding=None):
                """Refer to docstring of method `write.`"""
                self.write(path, format=f, prog=prog, encoding=encoding)

            name = "write_{fmt}".format(fmt=frmt)
            self.__setattr__(name, new_method)
Refer to docstring of method `create`.
python/aitemplate/utils/visualization/pydot.py