Using Function Graph plugin #6371
-
Hi, Specifically, I have been creating Is there a way I can choose my own code blocks via script to be in Ghidra's Function Graph? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The API currently does not allow for code block selection when graphs are created. That being said, you can change the source code to do whatever you like. The class that generates the graphs using code blocks is Assuming you are setup to change Ghidra source code, you can change how |
Beta Was this translation helpful? Give feedback.
-
As a follow up, since this whole script was based on wanting to visualize ghidra.graph.algo Tarjan's algorithm, is there a different approach to do this? |
Beta Was this translation helpful? Give feedback.
-
Creating a script to use our Graph APIs is the easiest way to create and render a graph in Ghidra. The UI provided for scripting is more general and not as feature rich as the more specialized Function Graph. If you only need display, then the method you are using is probably a good one. If you really want the features of the Function Graph, but would also like to change how the blocks are generated, then the more invasive changing of the source code is what you would need to do. |
Beta Was this translation helpful? Give feedback.
Creating a script to use our Graph APIs is the easiest way to create and render a graph in Ghidra. The UI provided for scripting is more general and not as feature rich as the more specialized Function Graph.
If you only need display, then the method you are using is probably a good one. If you really want the features of the Function Graph, but would also like to change how the blocks are generated, then the more invasive changing of the source code is what you would need to do.