title: Server-side vs. Client side computations
body: <p>So I'm trying to implement a project where I have graph data (few 100 nodes for now, but could become a million later) stored as a json file. </p>
  
  <ul>
  <li>I'm using <strong>NetworkX</strong> libraries in python to generate all the data
  from some information, and then sending over the json file to the
  client side.</li>
  <li>I'm using <strong>d3.js</strong> to represent the graph in javascript
  on the client side.</li>
  </ul>
  
  <p>Now, on the user's request, I need to delete the shortest path between two nodes of the user's choice in my graph and show them the resulting graph.
  I know that this processing has to be done on the client-side to prevent excess server load, but this is what I'm unsure about:</p>
  
  <ul>
  <li>An optimized graph library is what does this the fastest. In fact, NetworkX probably has a ready-made function for this. But it's in python. Is writing a shortest path deletion function in javascript the intelligent thing to do?</li>
  <li>Does d3.js have these sort of functions? Or is it a library only for representing stuff graphically?</li>
  </ul>
  
  <p>Thanks.</p>