See https://github.com/pietercolpaert/extract-cbd-shape/blob/main/lib/Shape.ts#L39 Would be useful for wider use without having to per se construct a full ShapesGraph first.