Function stack_graphs::c::sg_partial_path_database_find_local_nodes
source · #[no_mangle]
pub extern "C" fn sg_partial_path_database_find_local_nodes(
db: *mut sg_partial_path_database
)
Expand description
Determines which nodes in the stack graph are “local”, taking into account the partial paths in this database. The result is valid until the next call to this function, or until the database is freed.
A local node has no partial path that connects it to the root node in either direction. That means that it cannot participate in any paths that leave the file.
This method is meant to be used at index time, to calculate the set of nodes that are local after having just calculated the set of partial paths for the file.