mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 18:58:02 +08:00
Created the concept of graph types and display options for those graph types.
This commit is contained in:
@@ -22,7 +22,7 @@ import ghidra.service.graph.*;
|
||||
* Example script for creating and displaying a graph in ghidra
|
||||
*/
|
||||
public class ExampleGraphServiceScript extends GhidraScript {
|
||||
private AttributedGraph graph = new AttributedGraph();
|
||||
private AttributedGraph graph = new AttributedGraph("Test", new EmptyGraphType());
|
||||
private int nextEdgeID = 1;
|
||||
|
||||
@Override
|
||||
|
||||
@@ -107,7 +107,7 @@ public class GraphClassesScript extends GhidraScript {
|
||||
*/
|
||||
private AttributedGraph createGraph() throws Exception {
|
||||
|
||||
AttributedGraph g = new AttributedGraph();
|
||||
AttributedGraph g = new AttributedGraph("Test Graph", new EmptyGraphType());
|
||||
|
||||
for (Structure classStructure : classStructures) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user