A necessary and sufficient condition on slopes of segments to generate the same graph class is presented.