number of Nodes in the Diagram.
  myDiagram.links.count; // returns the number of Links.
  myDiagram.model.nodeDataArray[0]; // returns the first node data object in the diagram's model's Model.nodeDataArray.
  myDiagram.layoutDiagram(true); // forces all layouts to happen, rearranging the nodes and routing the links.
</code></pre>

<p>
  The code that you execute in the console can be more complicated too.
  For example, you can find, select, and scroll to a particular node:
</p>
<pre class="lang-js"><code