protected LayoutPositions<V, E> positionInLayoutSpaceFromGrid(VisualGraph<V, E> visualGraph,
			GridLocationMap<V, E> gridLocations) throws CancelledException {

		VisualGraphVertexShapeTransformer<V> transformer =
			new VisualGraphVertexShapeTransformer<>();
		Collection<V> vertices = visualGraph.getVertices();
		Collection<E> edges = visualGraph.getEdges();

		boolean isCondensed = isCondensedLayout();

		LayoutLocationMap<V, E> layoutLocations =
			new LayoutLocationMap<>(gridLocations, transformer, isCondensed, monitor);

		Map<V, Point2D> vertexLayoutLocations =
			positionVerticesInLayoutSpace(transformer, vertices, layoutLocations);

		Rectangle graphBounds = getTotalGraphSize(vertexLayoutLocations, transformer);
		double centerX = graphBounds.getCenterX();
		double centerY = graphBounds.getCenterY();

		//
		// Condense vertices before placing edges.  This allows layouts to perform custom routing
		// of edges around vertices *after* condensing.
		//
		if (isCondensed) {
			List<Row<V>> rows = gridLocations.rows();
			condenseVertices(rows, vertexLayoutLocations, transformer, centerX, centerY);
		}

		Map<E, List<Point2D>> edgeLayoutArticulations =
			positionEdgeArticulationsInLayoutSpace(transformer, vertexLayoutLocations, edges,
				layoutLocations);

		if (isCondensed) {
			// note: some layouts will not condense the edges, as they perform custom routing		
			List<Row<V>> rows = gridLocations.rows();
			condenseEdges(rows, edgeLayoutArticulations, centerX, centerY);
		}

		// DEGUG triggers grid lines to be printed; useful for debugging
		// VisualGraphRenderer.setGridPainter(new GridPainter(layoutLocations.getGridCoordinates()));

		layoutLocations.dispose();
		gridLocations.dispose();

		return LayoutPositions.createNewPositions(vertexLayoutLocations, edgeLayoutArticulations);
	}
Takes the given layout and copies the layout information this layout into that layout

@param newLayout the new layout to update
Ghidra/Framework/Graph/src/main/java/ghidra/graph/viewer/layout/AbstractVisualGraphLayout.java