Graphviz 16.1.1~dev.20260906.1627
Loading...
Searching...
No Matches
hier.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v2.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#include <stdbool.h>
14#include <stddef.h>
15#include <topfish/hierarchy.h>
16
17 typedef struct {
19 int *foci_nodes; /* Nodes in real graph */
20 double *x_foci; /* Universal coordinates */
21 double *y_foci;
22 } focus_t;
23
24 typedef struct {
25 // all must be set
26 double width;
27 double height;
28 double distortion; /* default of 1.0 */
30
31 void positionAllItems(Hierarchy * hp, focus_t * fs,
33Hierarchy *makeHier(int nnodes, int nedges, v_data *, double *, double *,
34 bool dist2_limit);
35
36focus_t *initFocus(size_t ncnt);
void positionAllItems(Hierarchy *hp, focus_t *fs, reposition_t *parms)
Definition hier.c:21
focus_t * initFocus(size_t ncnt)
Definition hier.c:132
Hierarchy * makeHier(int nnodes, int nedges, v_data *, double *, double *, bool dist2_limit)
Definition hier.c:102
static int nedges
total no. of edges used in routing
Definition routespl.c:32
Definition hier.h:17
int * foci_nodes
Definition hier.h:19
int num_foci
Definition hier.h:18
double * y_foci
Definition hier.h:21
double * x_foci
Definition hier.h:20
double distortion
Definition hier.h:28
double height
viewport height
Definition hier.h:27
double width
viewport width
Definition hier.h:26
static parms_t parms
Definition tlayout.c:77