Graph potentials method and its application for chemical information processing