We will learn how to apply a graph mindset to the data available in SWAPI to fit it into the Neo4J paradigm. We will use Alistair Jones' "Arrow Tool" to easily visualize our model as we build it.
How do you represent a list in a graph using a tool like arrow?
Tony, one possible approach is to represent your items as a linked list.
If you have, for instance, a list like [a, b, c]
, you could represent it in the graph with next
/prev
relationships:
(a)-[:NEXT]->(b)-[:NEXT]->(c),
(a)<-[:PREV]-(b)<-[:PREV]-(c)