cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Expect disruption to service on Thursday, Feb. 9!

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

marcelix161
Node Clone

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.

1 ACCEPTED SOLUTION

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 Creating graphs - Neo4j Graph Data Science.
The path-algorithms runs over a given graph, which can also have multiple labels or types.

View solution in original post

1 REPLY 1

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 Creating graphs - Neo4j Graph Data Science.
The path-algorithms runs over a given graph, which can also have multiple labels or types.