adding segment graphs