This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Collection; | |
import org.neo4j.graphalgo.PathFinder; | |
import org.neo4j.graphalgo.impl.path.AllSimplePaths; | |
import org.neo4j.graphalgo.impl.path.ShortestPath; | |
import org.neo4j.graphdb.DynamicRelationshipType; | |
import org.neo4j.graphdb.Expander; | |
import org.neo4j.graphdb.GraphDatabaseService; | |
import org.neo4j.graphdb.Node; | |
import org.neo4j.graphdb.Path; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source relationships: | |
9604 | |
2161113 | |
142023 | |
Shortest path case | |
(2624016)--[User_relation_6,9067449]-->(2161113)<--[PERSON_PERSON,7879807]--(2161112) | |
(2624016)--[User_relation_6,9067448]-->(142023)<--[PERSON_ORG,1982010]--(2161113)<--[PERSON_PERSON,7879807]--(2161112) | |
All simple paths case | |
(2624016)--[User_relation_6,9067449]-->(2161113)<--[PERSON_PERSON,7879807]--(2161112) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source relationships: | |
2161113 | |
142023 | |
Shortest path case | |
(2624016)--[User_relation_6,9067449]-->(2161113)<--[PERSON_PERSON,7879807]--(2161112) | |
All simple paths case | |
(2624016)--[User_relation_6,9067449]-->(2161113)<--[PERSON_PERSON,7879807]--(2161112) | |
(2624016)--[User_relation_6,9067448]-->(142023)<--[PERSON_ORG,1982010]--(2161113)<--[PERSON_PERSON,7879807]--(2161112) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// const game = createBoard(width, height, noMines); | |
// game.open(0, 1); // x, y | |
// [ [ '.', '1', '1', ..., '.'], | |
// [ '.', '1', '0', .... '.'], | |
// --> DEAD | |
// --> N | |
// --> | |
// |