Classifying slopes given graphs of lines