:add: get_{sources, targets} function in graph manager