Is this statement the code to find the critical path?

Hello,I am a Japanese student. I’m learning about the GanttProject and want to know the code statement to find the critical path on the Gantt chart.
If this is not the correct answer, please tell me the source code to find the critical path.

<here was the full contents of this file:>

Yes, it is. I hoped the class name was kinda self-describing…


thank you. Your reply was quick and it was very helpful. :smiling_face_with_three_hearts:

This algorithm is difficult for me to understand, so please give me some tips to understand it.