Calculates the grade (level) of each concept using the longest path from the bottom element. This is a fast C++ implementation.
calculate_grades(concept_ids, edge_from, edge_to)An integer vector of the calculated grade for each concept ID.
A vector of concept IDs (integers).
A vector of source concept IDs from the cover relation (Hasse diagram).
A vector of target concept IDs from the cover relation (Hasse diagram).