Can path-finding algorithms be applied to datasets with different labels?

I'm studying path-finding algorithms from here.
I am a complete newbie to both neo4j and graphing.
All examples use a dataset with only one label.
My question:
Can path-finding algorithms be applied to datasets with different labels?
I have two labels on my graphs.

Hey @marcelix161 ,
also yes to that question.
You can apply the algorithm also on graphs with two labels.
Our examples only use one label for simplicity, but nothing stops you from running it on another graph.

To load your graph have a look at https://neo4j.com/docs/graph-data-science/current/graph-create/#_multi_graph.
The path-algorithms runs over a given graph, which can also have multiple labels or types.

1 Like