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