Graphviz 14.0.5~dev.20251117.1017
Loading...
Searching...
No Matches
aspect.c
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#include <dotgen/dot.h>
12#include <stdio.h>
13
14/*
15 * Author: Mohammad T. Irfan
16 * Summer, 2008
17 */
18
19/* TODO:
20 * - Support clusters
21 * - Support disconnected graphs
22 * - Provide algorithms for aspect ratios < 1
23 */
24
26 const char *const p = agget(g, "aspect");
27
28 if (!p || sscanf(p, "%lf,%d", &(double){0}, &(int){0}) <= 0) {
29 return;
30 }
31 agwarningf("the aspect attribute has been disabled due to implementation "
32 "flaws - attribute ignored.\n");
33}
void setAspect(Agraph_t *g)
Definition aspect.c:25
char * agget(void *obj, char *name)
Definition attr.c:448
void agwarningf(const char *fmt,...)
Definition agerror.c:173
graph or subgraph
Definition cgraph.h:424