Yields a string of canvas.js code. A setup() function loads the nodes and edges into variable g (Graph), A draw() function starts the animation and updates the layout of g.
(self)
| 1290 | |
| 1291 | @property |
| 1292 | def script(self): |
| 1293 | """ Yields a string of canvas.js code. |
| 1294 | A setup() function loads the nodes and edges into variable g (Graph), |
| 1295 | A draw() function starts the animation and updates the layout of g. |
| 1296 | """ |
| 1297 | return "".join(self._script()) |
| 1298 | |
| 1299 | def _script(self): |
| 1300 | s = []; |