Graph this following function

Answer:
Please find attached the graph of the following function;
[tex]\left\{\begin{matrix}x - 1 & if & -2 \leq x < 0\\ 1 & if & x = 0 \\ 3 & if & 0 < x \leq 2\end{matrix}\right.[/tex]
Step-by-step explanation:
We note that the function is linear from x = 2 to just before x = 0
The linear relationship of the function f(x) with x changes just before x = 0
At x = 0, the value of f(x) is indicated as 1
From just after x = 0, the function is a straight horizontal line y = 3
The function also changes value immediately after x = 0 to the line y = 3
The areas where the function is defined are shown in continuous lines