Skip to content

Instantly share code, notes, and snippets.

@timjstewart
Created February 21, 2014 19:04
Show Gist options
  • Select an option

  • Save timjstewart/9140992 to your computer and use it in GitHub Desktop.

Select an option

Save timjstewart/9140992 to your computer and use it in GitHub Desktop.
Is this slow?
List<Vertex> responses = ... list of 8 responses ...
// Collect all the concepts for all of the responses along with the responses that mention each concept.
final Map m = [:]
final List<Vertex> concepts = responses._().bagConcepts(m, 1L, 1) { [it, it.in(S.EDGE_MENTIONS).toList()] }.toList()
// Even if each response mentions the same 100 concepts, that should only be 800 vertices tops, I would think...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment