  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=visual_edge.background,
                        edgecolor=&#39;none&#39;,
                    )
                    text_kwargs[&#39;ha&#39;] = &#39;center&#39;
                    text