Split large graphelements file into separate files, one for each class.