Ambarzumyan-Type Theorems for the Sturm-Liouville Equation on a Graph