public static void highlightEdgesOfNode(final Node node, final boolean highlight) {
    final EdgeCursor edges = node.edges();

    int edgeCount = node.degree();

    for (Edge edge = edges.edge(); edgeCount > 0; edgeCount--) {
      final EdgeRealizer edgeRealizer = ((Graph2D) node.getGraph()).getRealizer(edge);

      highlightEdge(edgeRealizer, highlight);

      edges.cyclicNext();
      edge = edges.edge();
    }
  }
Highlights all edges of a node.

@param node The node whose edges are highlighted.
@param highlight True to add highlighting to the edges. False to remove it.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/editmode/helpers/CEdgeHighlighter.java