private AbstractTestVertex vertex(int id) {
		//
		// First, find the exact instance of the vertex in the graph, as it may have state 
		// applied to it that we need to verify for testing.
		//
		AbstractTestVertex v = runSwing(() -> {
			LabelTestVertex labelVertex = new LabelTestVertex(Integer.toString(id));
			Collection<AbstractTestVertex> vertices = graph.getVertices();
			for (AbstractTestVertex vertex : vertices) {
				if (labelVertex.equals(vertex)) {
					return vertex;
				}
			}
			return labelVertex;
		});

		graph.addVertex(v);
		return v;
	}
Returns the vertex for the given ID, creating it if it does not yet exist.

@param id the vertex id
@return the vertex
Ghidra/Framework/Graph/src/test.slow/java/ghidra/graph/viewer/edge/VisualGraphPathHighlighterTest.java