Added unified getDifference method usage to graphWidget