   src_vertex, dest_vertex = vertex_builder[src], vertex_builder[dest]
            (x, y), (halign, valign) = edge_drawer.get_label_position(
                visual_edge,
                src_vertex,
                dest_vertex,
            )

            text_kwargs = {}
            text_kwargs[&#39;ha&#39;] = halign.value
            text_kwargs[&#39;va&#39;] = valign.value

            if visual_edge.background is not None:
                text_kwargs[&#39;bbox&#39;] = dict(
                    facecolor=