Added node classification. Btw. @nodes could be generated from @paths