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