Inkscape is a vector graphics editor which has a "diagram connector" tool which creates lines between objects that will follow them if you move them. Dia is a specialized diagramming tool with support for a variety of diagram notations. Both are open source and multiplatform.