Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
graph = vertices.map(lambda ver: dataprep.create_adjlist(ver, allvertices))
graph = wordcloud.map(lambda ver: dataprep.create_adjlist(ver, vert_cache)).filter(lambda l: len(l[1]) > 0).cache() #Remove this filter if not much use
rank = graph.map(lambda (vert, neighbors): (vert, 0.15))