Identifying Common Connected Components of Graphs