public static <NodeType extends ZyGraphNode<? extends IViewNode<?>>>
      void hideMultipleEdgesInternal(final AbstractZyGraph<NodeType, ?> graph) {
    graph.iterate(
        new INodeCallback<NodeType>() {
          @Override
          public IterationMode next(final NodeType node) {
            hideMultipleEdgesInternal(node);

            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