Skip to main content

grapher.TacoIndex

Parallel index of compressed range-pattern dependency edges.

Usage

Source

grapher.TacoIndex()

Parameter Attributes

compressed_edges: list[CompressedEdge] = list()
single_edges: list[SingleEdge] = list()
_prec_spatial: RangeSpatialIndex = RangeSpatialIndex()
_dep_spatial: RangeSpatialIndex = RangeSpatialIndex()
_single_prec: dict[NodeKey, list[NodeKey]] = dict()
_single_dep: dict[NodeKey, list[NodeKey]] = dict()

Methods

Name Description
find_dependents() Return dependent ranges that depend on query.
find_precedents() Return precedent ranges that query depends on.
rebuild_spatial_indices() Rebuild spatial lookup structures after edges are added.

find_dependents()

Return dependent ranges that depend on query.

Usage

Source

find_dependents(query)

find_precedents()

Return precedent ranges that query depends on.

Usage

Source

find_precedents(query)

rebuild_spatial_indices()

Rebuild spatial lookup structures after edges are added.

Usage

Source

rebuild_spatial_indices()