segment graph