public Set<Vertex> toSet() {
		Set<Vertex> vs = new HashSet<>(this.size());
		GraphIterator<Vertex> i = this.iterator();
		while (i.hasNext()) {
			vs.add(i.next());
		}
		return vs;
	}
Return the elements of this VertexSet as a java.util.Set.
Ghidra/Framework/Generic/src/main/java/ghidra/util/graph/VertexSet.java