shortest_cycle finds a shortest cycle starting and ending at the given node; this can be helpful in analysing cyclic garbage without having to examine the entire strongly connected component of the node
find_by_typename simply extracts all objects whose type has a given __name__
count_by_typename returns counts of the whole graph by typename.
This PR adds a few new
ObjectGraph
methods:shortest_cycle
finds a shortest cycle starting and ending at the given node; this can be helpful in analysing cyclic garbage without having to examine the entire strongly connected component of the nodefind_by_typename
simply extracts all objects whosetype
has a given__name__
count_by_typename
returns counts of the whole graph by typename.