title: Summarise many nodes in Cytoscape.js
body: <p>I am building a web app where the user can create a sort of <strong>bipartite graph</strong> like this one:</p>
  
  <p><a href="https://i.stack.imgur.com/NqovH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NqovH.png" alt="A 6 x 7 x 12 graph"></a></p>
  
  <p>Sometimes the user would like to build a <strong>huge</strong> graph, for example a graph in which the topmost layer has 784 nodes, as in the next picture. My application can handle the computation, but the result is ugly and meaningless:</p>
  
  <p><a href="https://i.stack.imgur.com/qKQZI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qKQZI.png" alt="A 6 x 7 x 784 graph"></a></p>
  
  <p>Do you have any idea for rendering a huge layer without just drawing all the nodes but, instead, <em>summarising</em> them with another, prettier representation?</p>
  
  <p>Until now I have thought about putting all the nodes of a "huge" layer in an empty compound node, but of course then it is not possible to draw some edges (so the huge layer would seem as it were disconnected from the graph). Another solution would be to have all layers with more than 100 nodes have exactly 100 nodes, and put them inside a compound node with z-index greater than each node's z-index; but I haven't tried this yet.</p>
  
  <p>If you have some other ideas, or if Cytoscape.js provides a way to summarise large graphs, please let me know.</p>
  
  <p>Thank you.</p>