# Missing edge labels

**URL:** <https://forum.graphviz.org/t/missing-edge-labels/1963>\
**Category:** Help\
**Created:** [January 8, 2024, 2:28pm UTC](https://forum.graphviz.org/t/missing-edge-labels/1963 "2024-01-08T14:28:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vrana1155](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@vrana1155](https://forum.graphviz.org/u/vrana1155)\
**Post date:** [January 8, 2024, 2:28pm UTC](https://forum.graphviz.org/t/missing-edge-labels/1963/1 "2024-01-08T14:28:55Z")

</div>

Can someone help me consider following digraph:  
`digraph g { graph [nodesep="0.25" ,ranksep="0.5"]; 0 [width="2.5" ,height="0.41666666666666663" ,shape="box" ,fixedsize="true"]; {rank=source; 1 [width="0.4861111111111111" ,height="0.4861111111111111" ,shape="circle" ,fixedsize="true"];} {rank=sink; 2 [width="0.4861111111111111" ,height="0.4861111111111111" ,shape="circle" ,fixedsize="true"];} subgraph cluster3 { graph [label="MMMMM" ,margin="50"]; 4 [width="2.5" ,height="0.41666666666666663" ,shape="box" ,fixedsize="true"]; 5 [width="2.5" ,height="0.41666666666666663" ,shape="box" ,fixedsize="true"]; }; 4 -> 0 [arrowsize="0.5" ,tailclip="false" ,fontname="Segoe UI SemiBold" ,fontsize="12" ,penwidth="6" ,label="MMMMM" ,weight="9" ,comment="6"]; 0 -> 5 [arrowsize="0.5" ,tailclip="false" ,fontname="Segoe UI SemiBold" ,fontsize="12" ,penwidth="6" ,label="MMMMM" ,weight="9" ,comment="7"]; 0 -> 0 [arrowsize="0.5" ,tailclip="false" ,fontname="Segoe UI SemiBold" ,fontsize="12" ,penwidth="6" ,label="MMMMM" ,weight="23" ,comment="8"]; 5 -> 2 [arrowsize="0.5" ,tailclip="false" ,fontname="Segoe UI SemiBold" ,fontsize="12" ,penwidth="6" ,label="MMMMM" ,weight="9" ,comment="9"]; 1 -> 4 [arrowsize="0.5" ,tailclip="false" ,fontname="Segoe UI SemiBold" ,fontsize="12" ,penwidth="6" ,label="MMMMM" ,weight="9" ,comment="10"]; }`

When I run -Tsvg/-Tpng for the above digraph there is issue with resulting png/svg output. There are missing labels for the following edges:

0 → 5  
4 → 0

Do you see any issue with above digraph ? Or is there bug in graphviz ?

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [January 8, 2024, 3:48pm UTC](https://forum.graphviz.org/t/missing-edge-labels/1963/2 "2024-01-08T15:48:17Z")

</div>

You have encountered a bug.  
Certain labels are not displayed if **rank=sink** (see [Label of edge not displayed when having "rank=sink" (#2346) · Issues · graphviz / graphviz · GitLab](https://gitlab.com/graphviz/graphviz/-/issues/2346))  
As a work-around, try changing the **label** s to **xlabel** s.
