differt_core.rt.AllPathsFromDiGraphChunksIter

differt_core.rt.AllPathsFromDiGraphChunksIter#

class AllPathsFromDiGraphChunksIter#

Bases: object

An iterator over all paths in a directed graph, as array chunks.

Methods

count()

Count the number of elements in this iterator by consuming it.

Detailed documentation

count()#

Count the number of elements in this iterator by consuming it.

This is much faster that counting the number of elements using Python code.

Returns:

The number of elements that this iterator contains.

Return type:

int