Last active
          September 28, 2016 12:58 
        
      - 
      
- 
        Save paulozullu/a3e5049d0d1f42acdf37da0c3c1a20bd to your computer and use it in GitHub Desktop. 
    Cypher to calculate subjects
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | MATCH ()-[n2:NEXT]-(w:Word) | |
| WITH w, COUNT(n2) AS DEGREE, SUM(n2.count) AS STRENGTH | |
| ORDER BY w.name | |
| RETURN w, DEGREE, STRENGTH, toFloat(STRENGTH)/toFloat(DEGREE) AS SELECTIVITY | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment