graph k23 { rankdir="LR"; node [ shape="point" ]; { rank="same"; 1; 2; } { rank="same"; 3; 4; 5; } 1 -- 3; 1 -- 4; 1 -- 5; 2 -- 3; 2 -- 4; 2 -- 5; }