instruction
stringlengths 48
114
| answer
stringlengths 1
28
|
---|---|
Graph: E->F, I->J, C->D, F->G, D->C, G->H, E->J, B->C, D->E, H->I, A->B; Query: Path from D to D | D |
Graph: A->C, C->D, B->C, D->B, A->B; Query: Path from D to B | D->B |
Graph: F->D, C->D, E->F, C->E, A->B, F->E, D->E, B->C; Query: Path from B to E | B->C->E |
Graph: A->B, D->C, B->C, C->A, C->D, D->E, E->F; Query: Path from F to A | No path exists |
Graph: G->H, I->J, F->G, A->E, D->E, B->C, C->D, H->B, H->I, J->G, E->F, G->C, A->B; Query: Path from C to F | C->D->E->F |
Graph: D->E, E->F, D->E, C->D, F->E, B->C, A->B; Query: Path from D to F | D->E->F |
Graph: A->B, C->D, C->D, B->C, A->D, D->E; Query: Path from B to C | B->C |
Graph: C->D, E->F, D->E, A->B, A->G, B->F, G->H, F->G, C->B, B->A, B->C; Query: Path from G to B | No path exists |
Graph: B->C, A->B, A->C; Query: Path from B to B | B |
Graph: A->B, B->C, B->A; Query: Path from B to A | B->A |
Graph: C->D, E->F, A->B, B->C, C->D, D->E; Query: Path from D to E | D->E |
Graph: D->E, C->D, E->F, B->C, A->B, E->A; Query: Path from A to C | A->B->C |
Graph: A->B, F->G, C->D, D->E, E->F, G->H, B->C, H->I, F->C; Query: Path from F to I | F->G->H->I |
Graph: B->C, D->E, C->D, A->B, D->E; Query: Path from B to E | B->C->D->E |
Graph: A->D, D->E, F->G, C->D, E->F, A->B, B->C; Query: Path from G to C | No path exists |
Graph: F->C, D->E, C->D, B->C, F->G, A->B, A->B, E->F; Query: Path from D to E | D->E |
Graph: C->B, A->B, B->C; Query: Path from A to B | A->B |
Graph: C->D, D->F, B->C, G->H, F->G, E->F, A->C, H->I, D->E, A->B, D->F; Query: Path from G to B | No path exists |
Graph: B->A, E->F, A->B, B->C, C->D, G->H, E->A, F->G, D->E, I->J, H->I; Query: Path from A to D | A->B->C->D |
Graph: I->H, E->F, C->D, F->G, B->C, D->E, H->I, G->H, A->B; Query: Path from I to C | No path exists |
Graph: A->C, A->B, C->B, C->D, B->C; Query: Path from B to B | B |
Graph: B->C, C->D, B->D, A->B; Query: Path from A to A | A |
Graph: B->A, A->B, B->C; Query: Path from B to B | B |
Graph: C->D, D->E, B->C, E->F, D->F, A->B, B->E; Query: Path from D to F | D->F |
Graph: D->E, A->B, H->F, C->D, B->C, F->G, G->H, E->F, E->C; Query: Path from A to F | A->B->C->D->E->F |
Graph: D->C, E->D, E->F, E->B, G->H, H->I, I->D, D->E, A->B, C->D, F->G, B->C; Query: Path from A to E | A->B->C->D->E |
Graph: B->C, C->D, A->C, E->F, F->G, D->E, A->B, G->A, D->C; Query: Path from B to D | B->C->D |
Graph: D->E, B->C, C->A, A->B, C->D, E->A; Query: Path from C to E | C->D->E |
Graph: C->D, B->C, E->F, A->B, C->E, D->E; Query: Path from F to F | F |
Graph: E->F, F->G, A->B, E->G, B->C, D->G, D->E, C->D, E->F; Query: Path from G to F | No path exists |
Graph: F->G, B->C, A->B, D->E, E->F, B->E, C->D; Query: Path from C to C | C |
Graph: C->D, C->E, A->B, A->G, D->E, B->C, G->E, E->F, F->G; Query: Path from A to D | A->B->C->D |
Graph: B->A, A->B, B->C; Query: Path from C to A | No path exists |
Graph: F->G, A->B, C->D, A->D, B->C, D->E, E->C, B->C, E->F; Query: Path from B to G | B->C->D->E->F->G |
Graph: A->C, B->C, A->B; Query: Path from C to B | No path exists |
Graph: A->B, A->B, B->C; Query: Path from C to B | No path exists |
Graph: B->A, B->C, A->B; Query: Path from A to C | A->B->C |
Graph: A->B, B->C, B->D, C->D; Query: Path from A to D | A->B->D |
Graph: A->B, B->C, A->C, D->E, F->G, C->D, E->F; Query: Path from D to C | No path exists |
Graph: B->A, A->B, B->C; Query: Path from C to A | No path exists |
Graph: C->D, B->C, A->B, C->D; Query: Path from A to B | A->B |
Graph: D->E, B->C, C->D, H->I, A->B, F->G, E->F, G->H, B->D; Query: Path from I to I | I |
Graph: G->H, E->F, C->D, E->D, B->C, A->B, I->J, J->E, H->I, D->F, F->G, D->E; Query: Path from F to B | No path exists |
Graph: F->G, C->D, A->B, G->H, D->E, B->C, E->F, F->H; Query: Path from D to G | D->E->F->G |
Graph: B->C, C->A, C->D, C->E, D->E, A->B; Query: Path from E to D | No path exists |
Graph: E->F, C->D, D->A, D->E, A->B, B->C; Query: Path from F to A | No path exists |
Graph: C->D, D->A, D->E, A->B, B->C; Query: Path from D to C | D->A->B->C |
Graph: B->C, D->E, E->B, A->B, C->A, C->D; Query: Path from A to C | A->B->C |
Graph: E->H, E->F, I->J, J->I, G->H, C->J, D->E, H->I, F->G, H->G, A->B, C->D, B->C; Query: Path from B to D | B->C->D |
Graph: B->C, E->F, A->B, F->G, D->E, E->G, C->D, C->A; Query: Path from A to G | A->B->C->D->E->G |
Graph: B->C, D->E, E->C, E->F, E->F, A->B, C->D; Query: Path from C to C | C |
Graph: H->I, E->J, F->G, J->B, G->H, E->F, A->B, D->E, D->C, I->J, D->E, B->C, C->D; Query: Path from A to F | A->B->C->D->E->F |
Graph: E->D, F->D, A->B, C->D, D->E, B->C, E->F; Query: Path from D to D | D |
Graph: B->C, A->B, G->H, E->B, I->J, H->I, E->F, C->D, F->G, B->C, D->E, F->B; Query: Path from F to A | No path exists |
Graph: C->D, I->F, E->F, B->C, H->I, G->H, F->G, A->B, D->E; Query: Path from D to D | D |
Graph: E->F, D->E, B->D, A->B, F->G, B->C, C->D, G->B; Query: Path from A to D | A->B->C->D |
Graph: A->B, B->C, B->A, C->D, B->C; Query: Path from B to C | B->C |
Graph: I->J, F->G, C->E, A->B, H->J, D->E, C->D, H->I, G->H, I->H, G->F, D->E, B->C, E->F; Query: Path from F to B | No path exists |
Graph: G->H, F->G, C->D, H->E, G->F, B->C, C->G, H->G, E->F, A->B, D->E; Query: Path from E to F | E->F |
Graph: G->H, G->E, C->D, H->D, H->G, B->C, D->E, H->I, E->F, A->B, A->E, F->G; Query: Path from B to F | B->C->D->E->F |
Graph: D->E, A->D, B->C, C->D, A->B; Query: Path from A to E | A->B->C->D->E |
Graph: B->E, E->F, A->B, C->D, B->C, E->B, D->E; Query: Path from C to D | C->D |
Graph: C->D, A->E, A->F, A->B, F->B, D->E, E->F, B->C; Query: Path from C to A | No path exists |
Graph: E->F, F->A, A->B, C->D, B->C, D->E, F->B, A->C; Query: Path from A to E | A->C->D->E |
Graph: D->E, A->B, H->I, F->G, C->D, E->F, A->C, G->H, B->C; Query: Path from E to E | E |
Graph: A->B, F->G, I->J, C->D, B->E, D->E, H->I, B->C, J->H, E->F, G->H; Query: Path from I to I | I |
Graph: B->C, F->D, A->D, D->E, A->B, E->F, C->D; Query: Path from D to B | No path exists |
Graph: G->H, H->B, E->F, F->G, A->B, C->B, E->F, H->I, D->E, C->D, I->J, B->C; Query: Path from I to J | I->J |
Graph: B->C, D->C, A->B, E->F, C->D, D->E; Query: Path from C to F | C->D->E->F |
Graph: A->B, G->H, F->G, B->C, C->D, D->E, E->F, H->I, E->D; Query: Path from H to I | H->I |
Graph: C->D, D->C, B->C, A->B; Query: Path from A to B | A->B |
Graph: C->D, B->C, B->D, A->B; Query: Path from D to B | No path exists |
Graph: A->B, I->G, D->E, H->I, C->D, I->J, F->G, G->A, G->H, B->C, E->F; Query: Path from J to C | No path exists |
Graph: A->B, D->E, B->C, C->D, E->C, E->B; Query: Path from B to C | B->C |
Graph: D->E, E->D, B->C, C->D, A->B; Query: Path from B to D | B->C->D |
Graph: C->D, C->D, A->B, B->C; Query: Path from D to C | No path exists |
Graph: C->D, D->C, A->B, B->C; Query: Path from B to C | B->C |
Graph: A->B, B->C, B->C; Query: Path from B to C | B->C |
Graph: A->B, B->C, G->H, D->E, F->G, I->D, H->I, B->C, B->D, C->D, E->F; Query: Path from H to D | H->I->D |
Graph: D->E, C->D, B->E, B->C, A->B; Query: Path from D to A | No path exists |
Graph: E->F, A->B, B->C, C->D, G->H, F->G, D->E, A->B; Query: Path from D to G | D->E->F->G |
Graph: H->F, B->C, D->C, A->B, E->F, F->G, D->E, H->I, G->H, C->D, E->F, I->B; Query: Path from F to C | F->G->H->I->B->C |
Graph: A->B, B->C, B->C; Query: Path from A to C | A->B->C |
Graph: E->F, C->B, A->B, F->A, C->D, D->E, B->C; Query: Path from C to A | C->D->E->F->A |
Graph: B->C, E->F, D->E, E->F, C->D, E->A, F->G, A->B, G->H, A->E; Query: Path from A to H | A->E->F->G->H |
Graph: I->J, E->F, C->H, D->E, F->G, A->B, H->I, G->H, B->C, I->B, C->D, A->C, A->F; Query: Path from F to B | F->G->H->I->B |
Graph: B->C, F->E, D->E, E->F, C->D, A->B, F->G; Query: Path from E to F | E->F |
Graph: G->H, D->E, C->D, F->G, E->F, B->C, G->D, A->B; Query: Path from B to C | B->C |
Graph: E->F, D->E, B->C, H->I, A->B, E->D, F->G, C->D, G->H, I->J; Query: Path from B to F | B->C->D->E->F |
Graph: B->J, B->C, E->F, G->H, F->A, I->J, B->H, B->C, H->I, F->G, D->E, A->B, C->D, B->C; Query: Path from E to A | E->F->A |
Graph: C->F, B->C, A->B, F->G, C->E, G->H, H->I, C->D, G->D, E->F, D->E; Query: Path from F to F | F |
Graph: B->C, G->B, A->B, C->D, G->H, D->F, C->A, F->G, D->E, E->F, G->C; Query: Path from E to D | E->F->G->C->D |
Graph: B->C, H->C, D->E, C->D, A->B, E->F, I->J, G->H, I->C, F->G, A->B, H->I; Query: Path from F to A | No path exists |
Graph: D->E, C->A, A->B, D->C, C->D, B->C; Query: Path from E to B | No path exists |
Graph: A->B, B->C, C->B; Query: Path from C to B | C->B |
Graph: F->G, C->D, E->F, D->E, J->F, I->J, B->C, A->B, E->F, G->H, H->I; Query: Path from J to G | J->F->G |
Graph: C->A, A->B, B->C; Query: Path from C to A | C->A |
Graph: C->B, B->C, A->B, A->E, D->E, C->D; Query: Path from A to B | A->B |
Graph: C->D, D->E, C->F, E->F, B->C, A->B; Query: Path from A to F | A->B->C->F |
Graph: F->E, B->C, E->F, D->E, A->B, C->D; Query: Path from A to D | A->B->C->D |