title: Calculating Point Density using Python
body: <p>I have a list of X and Y coordinates from geodata of a specific part of the world. I want to assign each coordinate, a weight, based upon where it lies in the graph.</p>
  
  <p>For Example: If a point lies in a place where there are a lot of other nodes around it, it lies in a high density area, and therefore has a higher weight. </p>
  
  <p>The most immediate method I can think of is drawing circles of unit radius around each point and then calculating if the other points lie within in and then using a function, assign a weight to that point. But this seems primitive.</p>
  
  <p>I've looked at pySAL and NetworkX but it looks like they work with graphs. I don't have any edges in the graph, just nodes. </p>