misc: changed graph API

Signed-off-by: Rafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>