Small improvements to sfdp_layout()

8 jobs for master