Added classification of edges