Unfortunately, this is currently only possible by actually removing the undesired edges from the diagram.
The yFiles diagramming libraries are indeed able to handle this requirement. However, the yFiles libraries are no applications/programs but software libraries that provide functionality for software developers which create their own custom applications/programs.