Finding associations between nodes from different types

Hello everyone,
I have a question, and I would appreciate it if you can help me.
I have modeled a graph in Neo4j as a 5-layer multipartite graph such that no two nodes of the same type(label) are connected, but nodes from different layers are.
It is a simple model like this:
5 types of nodes( i.e. 5 layers) A--> B --> C <-- D --> E.
I want to find the ( possible ) associations between the set of nodes of type A (the first in that chain) with nodes of type E (the last in that chain). I would like to ask if someone can help by suggesting a way of doing so.
I thought of centrality measures but I found that none of the supported centrality algorithms works with heterogeneous data.

Thanks in advance.