This is a pretty broad question.
In theory you could make any library get the job done through extending the library. In your case you would be dragging elements around and connecting lines between them right? All jQuery UI will do for you is add animations and dragging, then you have jQuery to simplify selecting elements, manipulations, events, and ajax.
-- Kevin