add confidence value calculation for graph disambiguator