I have a csv file containing producers and consumers of some topics. e.g
producer,topic,consumer
PRODUCER-1,TOPIC-A,CONSUMER-1
PRODUCER-2,TOPIC-B,CONSUMER-2
PRODUCER-1,TOPIC-C,CONSUMER-3
PRODUCER-1,TOPIC-D,CONSUMER-1
PRODUCER-2,TOPIC-E,CONSUMER-3
I am trying to plot a graph using neo4j in Zeppelin notebook to achieve this. I managed to load the csv as shown below but couldn't get the pubsub graph showing the relationship between the producers and consumers via the topics working.
LOAD CSV FROM 'file:///data/pubsub.csv' AS row
WITH row[0] AS Producer, row[1] AS Topic, row[2] AS Consumer
RETURN Producer, Topic, Consumer
Would appreciate any help please. Thanks in advance