Visualization of XML petri net definitions
requested to merge ag-sks/teaching/projektseminars/2023-sommer-speichernutzung/2023-sommer-speichernutzung-student-access/hypeg-projektseminar-st23:net-visualization into master
This PR introduces a new draw
command. It takes the current model (from the read
command) and generates an HTML file at the specified path. It also tries to open it in the users browser.
The HTML file contains a visualization of the model that looks something like this:
The nodes are randomly distributed and can be dragged around to make the network more legible.
The template for that (template.html
) is fully self-contained and uses the D3.js library version 6.7. The library is kept inline in the HTML code for future-proofing.