Learn R Programming

cayleyR (version 0.2.1)

reconstruct_bfs_path: Reconstruct path from sparse BFS result

Description

Traces back from target_key to the root (start state) using the parent_key/child_key edges in the BFS result.

Usage

reconstruct_bfs_path(bfs_result, target_key)

Value

Character vector of operations from start to target

Arguments

bfs_result

data.frame returned by sparse_bfs()

target_key

Character string — state key to trace back from