def drawKMLsForUserCooccurenceGraph(minEdgeWeight=30): kml = SpotsKML() i=1 for edge in FileIO.iterateJsonFromFile(locationGraph): if edge['w']>=minEdgeWeight: kml.addLine(getLocationPairs(edge['e']), description=str(edge['w'])); i+=1 if i==10000: break kml.write(userBasedSpotsKmlsFolder+'%s.kml'%minEdgeWeight)