Skip to contents

Node ids are renumbered; a SourceNode identical in (path, band, nodata, grid, dtype) to one already in dst is deduplicated. Graphs are append-only (rewrites swap nodes in place, ids never reorder), so ascending id order within the reachable set is a valid topological order.

Usage

graph_import(dst, src, root_id)

Arguments

dst

Destination Graph (modified by reference).

src

Source Graph.

root_id

Id in src whose ancestry is imported.

Value

The id of the imported root in dst.