/************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-v10.html * * Contributors: Details at https://graphviz.org *************************************************************************/ #pragma once #include #include typedef struct { int num_foci; int *foci_nodes; /* Nodes in real graph */ double *x_foci; /* Universal coordinates */ double *y_foci; } focus_t; typedef struct { // all must be set double width; ///< viewport width double height; ///< viewport height double distortion; /* default of 1.0 */ } reposition_t; void positionAllItems(Hierarchy * hp, focus_t * fs, reposition_t * parms); Hierarchy *makeHier(int nnodes, int nedges, v_data *, double *, double *, bool dist2_limit); focus_t *initFocus(int ncnt);