Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
edgepaintmain.c File Reference
#include "config.h"
#include "../tools/openFile.h"
#include <cgraph/cgraph.h>
#include <cgraph/ingraphs.h>
#include <common/pointset.h>
#include <getopt.h>
#include <util/agxbuf.h>
#include <util/alloc.h>
#include <util/exit.h>
#include <util/startswith.h>
#include <util/unreachable.h>
#include <sparse/general.h>
#include <sparse/SparseMatrix.h>
#include <sparse/DotIO.h>
#include <edgepaint/node_distinct_coloring.h>
#include <edgepaint/edge_distinct_coloring.h>
#include <sparse/color_palette.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for edgepaintmain.c:

Go to the source code of this file.

Functions

static void usage (char *cmd, int eval)
 
static int checkG (Agraph_t *g)
 
static void init (int argc, char *argv[], double *angle, double *accuracy, int *check_edges_with_same_endpoint, int *seed, const char **color_scheme, int *lightness)
 
static int clarify (Agraph_t *g, double angle, double accuracy, int check_edges_with_same_endpoint, int seed, const char *color_scheme, int *lightness)
 
int main (int argc, char *argv[])
 

Variables

static char * fname
 
static FILE * outfile
 
static char ** Files
 

Function Documentation

◆ checkG()

static int checkG ( Agraph_t g)
static

Definition at line 64 of file edgepaintmain.c.

References agfstnode(), agfstout(), aghead, agnxtnode(), agnxtout(), and NULL.

Referenced by clarify().

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

◆ clarify()

static int clarify ( Agraph_t g,
double  angle,
double  accuracy,
int  check_edges_with_same_endpoint,
int  seed,
const char *  color_scheme,
int *  lightness 
)
static

Definition at line 243 of file edgepaintmain.c.

References agerrorf(), agnameof(), agwrite(), checkG(), edge_distinct_coloring(), initDotIO(), and seed.

Referenced by main().

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

◆ init()

static void init ( int  argc,
char *  argv[],
double *  angle,
double *  accuracy,
int *  check_edges_with_same_endpoint,
int *  seed,
const char **  color_scheme,
int *  lightness 
)
static

Definition at line 82 of file edgepaintmain.c.

References cmd, Files, knownColorScheme(), NULL, openFile(), opts, outfile, seed, startswith(), UNREACHABLE, usage, and Verbose.

Referenced by checkStart(), getExceptionClass(), getNullReferenceError(), getObjectPreviouslyDeletedError(), initial_positions(), main(), majorization(), setSeed(), SWIG_InitializeModule(), SWIG_pchar_descriptor(), and tuneControl().

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

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 260 of file edgepaintmain.c.

References agclose(), agnameof(), clarify(), fileName(), Files, fname, graphviz_exit(), init(), newIngraph(), nextGraph(), NULL, prev, seed, and Verbose.

Here is the call graph for this function:

◆ usage()

static void usage ( char *  cmd,
int  eval 
)
static

Definition at line 41 of file edgepaintmain.c.

References cmd, eval(), and graphviz_exit().

Here is the call graph for this function:

Variable Documentation

◆ Files

char** Files
static

Definition at line 39 of file edgepaintmain.c.

Referenced by init(), and main().

◆ fname

◆ outfile

FILE* outfile
static

Definition at line 38 of file edgepaintmain.c.

Referenced by init().