private AttributedVertex vertex(String name) {
		return graph.addVertex(name, name);
	}
Example script for creating and displaying a graph in ghidra
Ghidra/Features/Base/ghidra_scripts/ExampleGraphServiceScript.java