public static <
          NodeType extends ZyGraphNode<? extends IViewNode<?>>,
          EdgeType extends ZyGraphEdge<NodeType, EdgeType, ? extends IViewEdge<?>>>
      void unhideMultipleEdgesInternal(final AbstractZyGraph<NodeType, EdgeType> graph) {
    graph.iterateEdges(
        new IEdgeCallback<EdgeType>() {
          @Override
          public IterationMode nextEdge(final EdgeType edge) {
            edge.getRawEdge()
                .setVisible(edge.getSource().isVisible() && edge.getTarget().isVisible());

            return IterationMode.CONTINUE;
          }
        });
  }
Class to form a single edge out of a number of edges.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/proximity/MultiEdgeHider.java