Graphviz
13.0.0~dev.20241220.2304
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 <
topfish/hierarchy.h
>
14
15
typedef
struct
{
16
int
num_foci
;
17
int
*
foci_nodes
;
/* Nodes in real graph */
18
double
*
x_foci
;
/* Universal coordinates */
19
double
*
y_foci
;
20
}
focus_t
;
21
22
typedef
struct
{
23
// All 5 must be set
24
int
width
;
/* viewport width */
25
int
height
;
/* viewport height */
26
double
distortion
;
/* default of 1.0 */
27
}
reposition_t
;
28
29
void
positionAllItems
(
Hierarchy
* hp,
focus_t
* fs,
30
reposition_t
*
parms
);
31
Hierarchy
*
makeHier
(
int
nnodes,
int
nedges
,
v_data
*,
double
*,
32
double
*,
hierparms_t
*);
33
34
focus_t
*
initFocus
(
int
ncnt);
positionAllItems
void positionAllItems(Hierarchy *hp, focus_t *fs, reposition_t *parms)
Definition
hier.c:18
makeHier
Hierarchy * makeHier(int nnodes, int nedges, v_data *, double *, double *, hierparms_t *)
Definition
hier.c:99
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:38
focus_t
Definition
hier.h:15
focus_t::foci_nodes
int * foci_nodes
Definition
hier.h:17
focus_t::num_foci
int num_foci
Definition
hier.h:16
focus_t::y_foci
double * y_foci
Definition
hier.h:19
focus_t::x_foci
double * x_foci
Definition
hier.h:18
hierparms_t
Definition
hierarchy.h:60
reposition_t
Definition
hier.h:22
reposition_t::distortion
double distortion
Definition
hier.h:26
reposition_t::height
int height
Definition
hier.h:25
reposition_t::width
int width
Definition
hier.h:24
v_data
Definition
sparsegraph.h:21
parms
static parms_t parms
Definition
tlayout.c:80
cmd
smyrna
hier.h
Generated by
1.9.8