Graphviz 12.0.1~dev.20240715.2254
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/exit.h>
#include <cgraph/ingraphs.h>
#include <cgraph/unreachable.h>
#include <getopt.h>
#include "openFile.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 l] [-c l] [-o outfile] <files>\n\
-o <file> - put output in <file>\n\
-f - adjust immediate fanout chains\n\
-l <len> - stagger length of leaf edges between [1,l]\n\
-c <len> - put disconnected nodes in chains of length l\n\
-? - print usage\n"

Definition at line 38 of file unflatten.c.

Referenced by usage().