Skip to main content
100%

TPN

✓ Published0🌍 Public
BBoltMaud
Last edited Dec 2, 2018
Created on Dec 1, 2018

This example visualizes a Petri net parsed from a TPN specification, showing places as circles and transitions as rectangles. The code reads the TPN file, extracts nodes and links, and uses d3.forceSimulation with forceCenter, forceManyBody, forceCollide, and forceLink to layout the graph. Marked places are highlighted with a teal fill and display their token counts as text labels. The rendering uses SVG elements (circle, rect, line, text) and a marker for arrowheads, with labels positioned near each node during the simulation’s tick events. The data source is the provided TPN file, and the visualization updates positions dynamically as the simulation runs.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes