digraph { rankdir="LR"; 1->2[label="3/3"] 1->3[label="4/7"] 2->4[label="2/2"] 2->5[label="1/2"] 3->5[label="4/4"] 4->6[label="2/3"] 5->6[label="5/5"] }