### Question:
Node2VecStreamProc extends StreamProc<Node2Vec, HugeObjectArray<Vector>, Node2VecStreamProc.StreamResult, Node2VecStreamConfig> { @Procedure(value = "gds.alpha.node2vec.stream", mode = READ) @Description(NODE2VEC_DESCRIPTION) public Stream<StreamResult> stream( @Name(value = "graphName") Object graphNameOrConfig, @Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration ) { ComputationResult<Node2Vec, HugeObjectArray<Vector>, Node2VecStreamConfig> computationResult = compute( graphNameOrConfig, configuration ); if (computationResult.isGraphEmpty()) { return Stream.empty(); } Graph graph = computationResult.graph(); var result = computationResult.result(); return LongStream .range(0, graph.nodeCount()) .mapToObj(nodeId -> new StreamResult(graph.toOriginalNodeId(nodeId), result.get(nodeId).data())); }  @Procedure(value = "gds.alpha.node2vec.stream", mode = READ) @Description(NODE2VEC_DESCRIPTION) Stream<StreamResult> stream(
        @Name(value = "graphName") Object graphNameOrConfig,
        @Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration
    );  }### Answer:
@Test void shouldThrowIfRunningWouldOverflow() { long nodeCount = runQuery("MATCH (n) RETURN count(n) AS count", result -> result.<Long>columnAs("count").stream().findFirst().orElse(-1L) ); var query = GdsCypher.call() .loadEverything() .algo("gds.alpha.node2vec") .streamMode() .addParameter("walksPerNode", Integer.MAX_VALUE) .addParameter("walkLength", Integer.MAX_VALUE) .yields(); Throwable throwable = rootCause(assertThrows(QueryExecutionException.class, () -> runQuery(query))); assertEquals(IllegalArgumentException.class, throwable.getClass()); String expectedMessage = formatWithLocale( "Aborting execution, running with the configured parameters is likely to overflow: node count: %d, walks per node: %d, walkLength: %d." + " Try reducing these parameters or run on a smaller graph.", nodeCount, Integer.MAX_VALUE, Integer.MAX_VALUE ); assertEquals(expectedMessage, throwable.getMessage()); }