cancel
Showing results for 
Search instead for 
Did you mean: 

Using adjacency matrix in pandas Dataframe and apply Link prediction?

DMF194
Node Clone

Hi everyone,

My name is Fong and I was wondering if anyone has worked with adjacency matrices and import into neo4j to apply some form of link prediction algo like graph embeddings

The above is how the data set looks like.

How do I turn this into a graph?

My ultimate goal is to find relationships between entities or words with each other from various papers

Your help is appreciated and will accept any recommendations

1 REPLY 1

Hello @DMF194,
sorry for the late reply.
Importing data frames is possible via the GDS python client (see https://neo4j.com/docs/graph-data-science/current/python-client/graph-object/#_constructing_a_graph).
You mainly need so transform your adjacency matrix into a relationship data frame and a node data frame.

I dont really understand your data format though.
Are  access, achieve and acquiring relationship or node properties?