Skip to content

Instantly share code, notes, and snippets.

@Wolwer1nE
Created April 26, 2022 14:05
Show Gist options
  • Save Wolwer1nE/dc38cc7aed5c66727916073988a07f23 to your computer and use it in GitHub Desktop.
Save Wolwer1nE/dc38cc7aed5c66727916073988a07f23 to your computer and use it in GitHub Desktop.
Demo Sctucture
{
"nodes": [
{
"id": 0, //Identifier
"x": 646, // Node x coordinates
"y": 122, // Node y coordinates
"label": "Start", // Mark the start graph's
"symbolType": "diamond", // Shape node's
"color": "red", // Color node's,
"text": "The text of the node"
},
],
"links": [
{
"id": 0, // Identifier
"source": 3, // From which node the link starts
"target": 5, // To which node the link finishes
"text": "The text of the link",
"action": "x=x+1" // any computation that links perform
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment