public GroupedFunctionGraphVertex removeAll(Set<FGVertex> verticesToRemove) {

		Set<FGEdge> newEdges = new HashSet<>(ungroupedEdges);
		for (FGVertex vertex : verticesToRemove) {
			removeIncidentEdges(vertex, newEdges);
		}

		Set<FGVertex> newVertices = new HashSet<>(vertices);
		newVertices.removeAll(verticesToRemove);

		if (newVertices.isEmpty()) {
			return null;
		}

		GroupedFunctionGraphVertex newVertex =
			new GroupedFunctionGraphVertex(getController(), getUserText(), newVertices, newEdges);

		return newVertex;
	}
Creates a new group based upon this one, but with the given vertices (and incident edges)
removed. 

@param verticesToRemove the vertices to not include in the new group
@return the new group
Ghidra/Features/FunctionGraph/src/main/java/ghidra/app/plugin/core/functiongraph/graph/vertex/GroupedFunctionGraphVertex.java