I tried to find Ingredients DC in the Recipe graph from GDS playground but found no way to get it.
I found a video explaining it easily with other method but it seems not so easy with GDS:
I tried several things I can imagine but still failed:
nodeProjection: ['Ingredient', 'Recipe'],
relationshipProjection: 'CONTAINS_INGREDIENT'}) yield nodeId, score
match (n) where id(n)= nodeId
return n, score order by score desc limit 10
==> this returns scores for Recipe not Ingredient.
I know how to get the number of edges of Ingredients and divide them with the total number of Recipe and it will be DC of Ingredients:
match p = (i:Ingredient)--(:Recipe) return i, count(p) as degree order by degree desc limit 10
But I need to show customer doing it with GDS if there is a way.