Statics and dynamics of spin chains of arbitrary shape.