def yield_lines_as_svg(self):
        """Yield lines as svg elements.

        Used when representing lines as svg lines
        when exporting the node graph to a .svg file.
        """
        for parent in self.parents:

            x1_str, y1_str = map(str, parent.rect.center)

            for child in parent.children:

                x2, y2 = child.rect.center

                yield Element(
                    "line",
                    {
                        "x1": x1_str,
                        "y1": y1_str,
                        "x2": str(x2),
                        "y2": str(y2),
                        "class": parent.svg_class_name,
                    },
                )
Yield lines as svg elements.

        Used when representing lines as svg lines
        when exporting the node graph to a .svg file.
        
nodezator/graphman/socketparenthood/export.py