get_leafts_and_edges created in app.detective.utils, get_graph from summary and individuals factorised