I'm making a Tool to generate and Visualize Control Flow Graphs from Java Source codes
I'm making a Project that will read a Java source code line by line , then generate Control flow graph of the code and then visualize it. But I'm not sure how to do that, my teacher has told me to learn DOT to do this process but I'm confused.
Can someone please tell me the steps and the way to achieve my the goal I've just described?