Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
edgepaintmain.c File Reference
#include "config.h"
#include "../tools/openFile.h"
#include <cgraph/alloc.h>
#include <cgraph/cgraph.h>
#include <cgraph/agxbuf.h>
#include <cgraph/exit.h>
#include <cgraph/ingraphs.h>
#include <cgraph/startswith.h>
#include <cgraph/unreachable.h>
#include <common/pointset.h>
#include <getopt.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, char **color_scheme, int *lightness)
 
static int clarify (Agraph_t *g, double angle, double accuracy, int check_edges_with_same_endpoint, int seed, char *color_scheme, int *lightness)
 
int main (int argc, char *argv[])
 

Variables

static char * fname
 
static FILE * outfile
 

Function Documentation

◆ checkG()

static int checkG ( Agraph_t g)
static

Definition at line 63 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,
char *  color_scheme,
int *  lightness 
)
static

Definition at line 241 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,
char **  color_scheme,
int *  lightness 
)
static

Definition at line 81 of file edgepaintmain.c.

References cmd, CmdName, 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 258 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 40 of file edgepaintmain.c.

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

Here is the call graph for this function:

Variable Documentation

◆ fname

◆ outfile

FILE* outfile
static

Definition at line 38 of file edgepaintmain.c.

Referenced by init().