GSQL Accumulator Pattern MicroSim
Run the GSQL Accumulator Pattern MicroSim MicroSim Fullscreen
About This MicroSim
This MicroSim shows how a GSQL accumulator aggregates data during a graph traversal in real time — the core pattern behind TigerGraph analytics. A patient is connected to eight treatment nodes (each with a severity weight), and some treatments have complication nodes with their own weights. As the traversal visits each node, the selected accumulator updates: SumAccum adds the weights into a running risk score, MaxAccum keeps the largest, AvgAccum tracks the mean, and SetAccum collects the distinct items.
How to Use
Pick an accumulator type, set the animation speed, and press Start traversal to watch the patient's risk score build up as each treatment and complication is visited; the panel shows the running value, treatments visited, average severity, and the accumulated terms. Switch accumulators and re-run to compare how Sum, Max, Avg, and Set summarize the same traversal differently, and toggle the highlight to see the visit order.
Iframe Embed Code
You can add this MicroSim to any web page by adding this to your HTML:
1 2 3 4 | |
Lesson Plan
Grade Level
9-12 (High School Geometry)
Duration
10-15 minutes
Prerequisites
TODO: List prerequisites.
Activities
- Exploration (5 min): TODO
- Guided Practice (5 min): TODO
- Assessment (5 min): TODO
Assessment
TODO: List assessment criteria.
References
- TODO: Add references.