Graphviz
13.0.0~dev.20250402.0402
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 v1.0
5
* which accompanies this distribution, and is available at
6
* https://www.eclipse.org/legal/epl-v10.html
7
*
8
* Contributors: Details at https://graphviz.org
9
*************************************************************************/
10
11
#pragma once
12
13
#include <stdbool.h>
14
#include <
topfish/hierarchy.h
>
15
16
typedef
struct
{
17
int
num_foci
;
18
int
*
foci_nodes
;
/* Nodes in real graph */
19
double
*
x_foci
;
/* Universal coordinates */
20
double
*
y_foci
;
21
}
focus_t
;
22
23
typedef
struct
{
24
// All 5 must be set
25
int
width
;
/* viewport width */
26
int
height
;
/* viewport height */
27
double
distortion
;
/* default of 1.0 */
28
}
reposition_t
;
29
30
void
positionAllItems
(
Hierarchy
* hp,
focus_t
* fs,
31
reposition_t
*
parms
);
32
Hierarchy
*
makeHier
(
int
nnodes,
int
nedges
,
v_data
*,
double
*,
double
*,
33
bool
dist2_limit);
34
35
focus_t
*
initFocus
(
int
ncnt);
positionAllItems
void positionAllItems(Hierarchy *hp, focus_t *fs, reposition_t *parms)
Definition
hier.c:19
makeHier
Hierarchy * makeHier(int nnodes, int nedges, v_data *, double *, double *, bool dist2_limit)
Definition
hier.c:100
initFocus
focus_t * initFocus(int ncnt)
Definition
hier.c:130
hierarchy.h
nedges
static int nedges
total no. of edges used in routing
Definition
routespl.c:31
Hierarchy
Definition
hierarchy.h:39
focus_t
Definition
hier.h:16
focus_t::foci_nodes
int * foci_nodes
Definition
hier.h:18
focus_t::num_foci
int num_foci
Definition
hier.h:17
focus_t::y_foci
double * y_foci
Definition
hier.h:20
focus_t::x_foci
double * x_foci
Definition
hier.h:19
reposition_t
Definition
hier.h:23
reposition_t::distortion
double distortion
Definition
hier.h:27
reposition_t::height
int height
Definition
hier.h:26
reposition_t::width
int width
Definition
hier.h:25
v_data
Definition
sparsegraph.h:21
parms
static parms_t parms
Definition
tlayout.c:80
cmd
smyrna
hier.h
Generated by
1.9.8