Histogram of all properties

What is the best way of computing histograms of all properties of all selected nodes in Neo4j?
For example, assume that we have 3 nodes like this:

  • n1 {age:10, Country=UK}
  • n2 {age:11, Country=UK, gender: F}
  • n3 {age:20, Country=US, gender: M}

We want to show histograms of all attributes to the user (here, a histogram for age, one for Country, and one for gender).

You can use something like matplotlib to take graph data and convert to a histogram. The data science online training actually will show you how to do this hands-on. The link to the free online class is on our site. Hope this helps!

Cheers,
Jennifer

1 Like

Thank you. However, my main problem is how to calculate the histogram values not necessarily how to show them. We have an unknown set of properties and each of them is available in a subset of nodes. What is the best way to calculate histogram data for each of the properties (for all of them).

1 Like