/** * Layout edges if view is available. * * @param myView GINY's graph view object for the current network. * @param graphStyle the visual style creator object * @param buildStyle if true, build the graphical style */ private void layoutEdges(final GraphView myView, final VisualStyleBuilder graphStyle, final boolean buildStyle) { int tempid = 0; EdgeView view = null; HashMap<CyEdge, Attributes> edgeGraphicsMap = parser.getEdgeGraphics(); if (edgeGraphicsMap == null) return; for (CyEdge edge: edgeGraphicsMap.keySet()) { view = myView.getEdgeView(edge.getRootGraphIndex()); if (view != null) { layoutEdgeGraphics(edgeGraphicsMap.get(edge), view, graphStyle, buildStyle); } else { // If we don't have a view, assume that this is a hidden edge myView.getGraphPerspective().hideEdge(edge); } } }