Search code examples
sqlorientdbtraversal

OrientDB - Example for Traverse - BREADTH_FIRST


I read about Traverse here and curious as how to use BREADTH_FIRST strategy in the SQL? Can anyone please some examples?

Thanks


Solution

  • I've made this example for your case:

    This is my schema:

    enter image description here

    The query:

    traverse * from Number strategy breadth_first
    

    The output:

    enter image description here

    Hope it helps