graph g { node [ shape="circle" ]; 5 -- 4 -- 1; { rank="same"; 2; 3; } 1 -- 2; 1 -- 3; }