use cgraph instead of graph interfaces

Signed-off-by: Dinar Valeev <dvaleev@suse.com>