Function stack_graphs::c::sg_forward_path_stitcher_new [−][src]
#[no_mangle]
pub extern "C" fn sg_forward_path_stitcher_new(
graph: *const sg_stack_graph,
paths: *mut sg_path_arena,
partials: *mut sg_partial_path_arena,
db: *mut sg_partial_path_database,
count: usize,
starting_nodes: *const sg_node_handle
) -> *mut sg_forward_path_stitcher
Expand description
Creates a new forward path stitcher that is “seeded” with a set of starting stack graph nodes.
Before calling this method, you must ensure that db
contains all of the possible partial
paths that start with any of your requested starting nodes.
Before calling sg_forward_path_stitcher_process_next_phase
for the first time, you must
ensure that db
contains all possible extensions of any of those initial paths. You can
retrieve a list of those extensions via the previous_phase_paths
and
previous_phase_paths_length
fields.