//leakcanary-repo/shark/JavaLocalReferenceReader/readsCutSet
readsCutSet¶
[jvm]\ open override val readsCutSet: Boolean = false
https://en.wikipedia.org/wiki/Cut_(graph_theory) A cut is a partition of the vertices of a graph into two disjoint subsets. Any cut determines a cut-set, the set of edges that have one endpoint in each subset of the partition. These edges are said to cross the cut.
If true, the references returned by read will include the cut-set, which means any other object reacheable from the source instance but not returned by read has no outgoing edge to the rest of the graph. In other words, the internals of the data structure cannot reach beyond the data structure itself.
When this is true then ChainingInstanceReferenceReader can leverage FlatteningPartitionedInstanceReferenceReader.