private FGVertexType pickType() {
		boolean hasEntry = false;
		boolean hasExit = false;
		for (FGVertex vertex : vertices) {
			FGVertexType vertexType = vertex.getVertexType();
			if (vertexType == FGVertexType.ENTRY) {
				hasEntry = true;
			}
			else if (vertexType == FGVertexType.EXIT) {
				hasExit = true;
			}
		}

		if (hasEntry) {
			return FGVertexType.ENTRY;
		}

		if (hasExit) {
			return FGVertexType.EXIT;
		}

		return FGVertexType.GROUP;
	}
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