Graphs admitting only constant splines