should_cache(arg: 'ArrayConvertible', unique_share: 'float' = 0.7, check_count: 'int | None' = None) -> 'bool'
If the percent of unique elements among :None:None:`check_count`
elements less than :None:None:`unique_share * 100`
then we can do caching.
By default for a sequence of less than 50 items in size, we don't do caching; for the number of elements less than 5000, we take ten percent of all elements to check for a uniqueness share; if the sequence size is more than 5000, then we check only the first 500 elements. All constants were chosen empirically by.
0 < unique_share < 1
0 <= check_count <= len(arg)
Decides whether to do caching.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them