add InputGraph functionality