use cgraph instead of graph interfaces

Signed-off-by: Dinar Valeev <dvaleev@suse.com>
version + changes; closes #14