Is it possible to construct a graph model using Padgett's data on marriage ties using Neo4j?

I was just wondering whether it is possible to construct a graph model using Florentine Families dataset in Neo4j using below image. Relationship type and direction( which are mandatory in neo4j graph model) were missing in this data, only family nodes are provided. Is there a way to construct a graph model? (Please refer below image).


Hello @Kevin6482 :slight_smile:

I'm not sure about what you would like to get as result?


@Cobra Thanks for responding. I would like to construct a graph model and compute the centrality measures for each node (Degree Centrality, Betweenness Centrality, Closeness Centrality, etc).

You could create Person nodes and undirected KNOWS relationships. To created undirected relationships, you just need to don't specify a direction and that's all.

Little example to create two nodes:

MERGE (:Person {name: "PAZZI", eid: 0})
MERGE (:Person {name: "SALVIATI", eid: 1})

Little example to create one relationship:

MATCH (a:Person {eid: 0}), (b:Person {eid: 1})
MERGE (a)-[:KNOWS]-(b)

After you could use a cypher projection and GDS Centrality Algorithms to get the information you want.

I hope it helps you to get you started :slight_smile:


1 Like

Many thanks @Cobra. I created the graph model and also created a named graph with orientation : UNDIRECTED to compute measures of centrality (please correct me if I'm wrong). :slight_smile:

Good job, I don't see anything wrong :slight_smile: