liveBook · Manning

Size function

As explained in Graph Algorithms for Data Science

The Cypher size function returns the number of elements in a list or the length of a string.

The Cypher size() function returns the number of elements in a list or the length of a string. Use it to test whether extracted data contains anything to process. section 7.1

Filter tweets containing hashtags

After a list comprehension extracts hashtags, size(hashtags) > 0 keeps only tweets with at least one hashtag. The same condition appears before UNWIND expands each hashtag into a separate row. section 7.1

How Graph Algorithms for Data Science covers it

How deep it goes
Defines list counting and notes string length, without detailing type behavior or edge cases.
Examples
Demonstrates size(hashtags) > 0 on tweet hashtag lists before filtering and storage.
What you can do after
Apply it via Cypher to count list elements and filter records before expanding or storing extracted values.
How it connects
Connects list comprehension and UNWIND with hashtag extraction and node-degree counting.

This explainer was generated by Manning's knowledge graph from the text of Graph Algorithms for Data Science. The section links point to the parts of the book it draws on.