Repository navigation
[Query] Dataflow Cluster
Generated from 'wiki-query.ts' on 2026-11-08, 11:35:56 UTC (v2.17.4), do not edit directly.
Dataflow Cluster Query [overview]
Calculates and returns all the clusters present in the dataflow graph.
This query is requested with the type dataflow-cluster.
This query automatically calculates clusters in flowR's dataflow graph
and returns a list of all clusters found.
Clusters are to be interpreted as literal clusters on the graph traversing
edges in both directions. From this perspective,
the code x <- 1; x has one cluster (given that all code is related),
while the code x <- 1; y has two clusters (given that the y has no relation to the previous definition).
Example x <- 1; x
[ { "type": "dataflow-cluster" } ](This can be shortened to @dataflow-cluster when used with the REPL command :query).
Results (prettified and summarized):
Query: dataflow-cluster
╰ Found 1 cluster
╰ {3, 0, 2, 1} (marked)
Show Detailed Results as Json
The analysis ran (including parsing and normalization and the query) within the generation environment.
The JSON contains the ids of the nodes in question (see the Interface wiki page).
{"dataflow-cluster":{".meta":{},"clusters":[{"startNode":3,"members":[3,0,2,1],"hasUnknownSideEffects":false}]},".meta":{}}Example x <- 1; y
[ { "type": "dataflow-cluster" } ](This can be shortened to @dataflow-cluster when used with the REPL command :query).
Results (prettified and summarized):
Query: dataflow-cluster
╰ Found 2 clusters
╰ {3} (marked)
╰ {2, 1, 0} (marked)
Show Detailed Results as Json
The analysis ran (including parsing and normalization and the query) within the generation environment.
The JSON contains the ids of the nodes in question (see the Interface wiki page).
{"dataflow-cluster":{".meta":{},"clusters":[{"startNode":3,"members":[3],"hasUnknownSideEffects":false},{"startNode":2,"members":[2,1,0],"hasUnknownSideEffects":false}]},".meta":{}}Using the example code from above, the following query returns all clusters:
[ { "type": "dataflow-cluster" } ](This can be shortened to @dataflow-cluster when used with the REPL command :query).
Results (prettified and summarized):
Query: dataflow-cluster
╰ Found 1 cluster
╰ {89, 87, 85, 82, 83, 18, ... (see JSON)} (marked)
Show Detailed Results as Json
The analysis ran (including parsing and normalization and the query) within the generation environment.
The JSON contains the ids of the nodes in question (see the Interface wiki page).
{"dataflow-cluster":{".meta":{},"clusters":[{"startNode":89,"members":[89,87,85,82,83,18,23,22,57,62,69,74,77,75,79,72,67,60,65,63,58,70,20,11,"built-in:readr:read_csv",16,14,17,12,26,38,52,50,48,3,7,5,"built-in:dplyr:%>%",54,55,1,43,44,46,47,29,27,31,32,24,34,36,9],"hasUnknownSideEffects":false}]},".meta":{}}Implementation Details
The Dataflow Cluster Query is executed by executeDataflowClusterQuery.
Currently maintained by Florian Sihler and Oliver Gerstl at Ulm University
Email | GitHub | Penguins | Portfolio
- 🧑💻 Developer Onboarding
- 💻 Setup
- 👓 Overview
- 🪟 Interfacing with flowR
- 🌋 Core
- 🧹 Testing & Linting (Benchmark Page)
⁉️ FAQ- ℹ️ Extra Information