Smallest sub-graphs extraction implemented