How to control connections/disconnections?
Abstract: JGraph offers three levels of granularity: Global: Use JGraph.setConnectable(boolean) and JGraph.setDisconnectable (boolean) Per Edge, Vertex or Port: Use GraphConstants.setConnectable(Map, boolean) and JGraph.setDisconnectable(Map, boolean) Custom: Override the default graph model’s acceptsSource or acceptsTarget method for more fine-grained control The acceptsSource and acceptsTarget methods are typically called with an Edge, Port pair, where…