private static Graph2D getGraph(final Edge edge) {
    return (Graph2D) edge.getGraph();
  }
Creates a new mapping between raw edges and yfiles edges.

@param edge The yfiles edge.
@param rawEdge The raw edge.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/edges/ZyGraphEdge.java