On solving the inverse graph problem for the heat transfer equation with memory