fix linear graph layout, doc