  The question of what conditions should be set at the nodes of a discrete
graph for the wave equation with discrete time is investigated. The variational
method for the derivation of these conditions is used. A parallel with the
continuous case is also drawn. As an example the problem of shape
controllability from the boundary is studied.
