public List<FcgVertex> getVerticesByLevel(FcgLevel level) {

		// note: these are sorted, since they are housed in a TreeMap
		Set<FcgVertex> existingVertices = newVerticesBySource.keySet();

		//@formatter:off		
		List<FcgVertex> verticesAtLevel = existingVertices
			.stream()
			.filter(v -> v.getLevel().equals(level))
			.collect(Collectors.toList())
			;					
		//@formatter:on

		return verticesAtLevel;
	}
Returns all vertices at the given level

@param level the level to filter on
@return the vertices
Ghidra/Features/GraphFunctionCalls/src/main/java/functioncalls/graph/job/FcgExpandingVertexCollection.java