Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
unflatten.c File Reference

adjust directed graphs to improve layout aspect ratio More...

#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <cgraph/cgraph.h>
#include <cgraph/ingraphs.h>
#include <getopt.h>
#include "openFile.h"
#include <util/exit.h>
#include <util/unreachable.h>
Include dependency graph for unflatten.c:

Go to the source code of this file.

Typedefs

typedef graphviz_unflatten_options_t opts_t
 

Functions

static void usage (int v)
 
static char ** scanargs (opts_t *opts, int argc, char **argv)
 
int main (int argc, char **argv)
 

Variables

static FILE * outFile
 
static char * cmd
 
static char * useString
 

Typedef Documentation

◆ opts_t

Definition at line 33 of file unflatten.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 108 of file unflatten.c.

References agwrite(), graphviz_exit(), graphviz_unflatten(), newIngraph(), nextGraph(), opts, outFile, and scanargs().

Here is the call graph for this function:

◆ scanargs()

static char ** scanargs ( opts_t opts,
int  argc,
char **  argv 
)
static

Definition at line 52 of file unflatten.c.

References cmd, NULL, openFile(), opts, outFile, UNREACHABLE, and usage.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usage()

static void usage ( int  v)
static

Definition at line 46 of file unflatten.c.

References cmd, graphviz_exit(), and useString.

Here is the call graph for this function:

Variable Documentation

◆ cmd

char* cmd
static

Definition at line 36 of file unflatten.c.

Referenced by scanargs(), and usage().

◆ outFile

FILE* outFile
static

Definition at line 35 of file unflatten.c.

Referenced by main(), and scanargs().

◆ useString

char* useString
static
Initial value:
=
"Usage: %s [-f?] [-l <M>] [-c <N>] [-o <outfile>] <files>\n\
-o <outfile> - put output in <outfile>\n\
-f - adjust immediate fanout chains\n\
-l <M> - stagger length of leaf edges between [1,<M>]\n\
-c <N> - put disconnected nodes in chains of length <N>\n\
-? - print usage\n"

Definition at line 38 of file unflatten.c.

Referenced by usage().