iagram.fromDiv("myDiagramDiv");</code></pre>
  If that DIV element is not named, perhaps you have some other way of getting a reference to the DIV element.
  That may depend on the framework that you are using.
  You can still call <a>Diagram.fromDiv</a> on that element to get the corresponding Diagram object.
</p>
<p>
  Then in the console you can use the <code>myDiagram</code> reference to the <a>Diagram</a> object.  Some examples:
</p>

<pre class="lang-js"><code>
  myDiagram.nodes.count; // returns the 