added relatedness computation based on DFS