Concepts
Chaining
Almost everything is chainable, so you can write code like this:
JavaScript
gxr
.graph()
// Clear the graph
.clear()
// Generate random nodes and edges
.generate()
// Randomize age property
.property("age", {min: 0, max: 200})
// Filter selection to nodes with age > 50
.nodes('age > 50')
// Select the nodes visually
.select()
// Hide the nodes
.hide()
.sleep(1500)
// Show the nodes
.show()
.sleep(1500)
The result of each function is the subject of the next.