Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gml2gv.c File Reference
#include "gml2gv.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "openFile.h"
#include <getopt.h>
#include <util/agxbuf.h>
#include <util/alloc.h>
#include <util/exit.h>
#include <util/unreachable.h>
Include dependency graph for gml2gv.c:

Go to the source code of this file.

Functions

static FILE * getFile (void)
 
static void usage (int v)
 
static char * cmdName (char *path)
 
static void initargs (int argc, char **argv)
 
static char * nameOf (agxbuf *buf, char *name, int cnt)
 
int main (int argc, char **argv)
 

Variables

static bool Verbose
 
static char * gname = ""
 
static FILE * outFile
 
static char * CmdName
 
static char ** Files
 
static char * useString
 

Function Documentation

◆ cmdName()

static char * cmdName ( char *  path)
static

Definition at line 64 of file gml2gv.c.

Referenced by initargs().

Here is the caller graph for this function:

◆ getFile()

static FILE * getFile ( void  )
static

Definition at line 29 of file gml2gv.c.

References cnt(), Files, and NULL.

Referenced by main().

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

◆ initargs()

static void initargs ( int  argc,
char **  argv 
)
static

Definition at line 75 of file gml2gv.c.

References CmdName, cmdName(), Files, gname, NULL, openFile(), outFile, UNREACHABLE, usage, and Verbose.

Referenced by main().

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 129 of file gml2gv.c.

References agclose(), agnameof(), agnedges(), agnnodes(), agwrite(), agxbfree(), cnt(), G, getFile(), gml_to_gv(), gname, graphviz_exit(), inFile, initargs(), nameOf(), outFile, prev, and Verbose.

Here is the call graph for this function:

◆ nameOf()

static char * nameOf ( agxbuf buf,
char *  name,
int  cnt 
)
static

Definition at line 119 of file gml2gv.c.

References agxbprint(), agxbuse(), and cnt().

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 59 of file gml2gv.c.

References CmdName, graphviz_exit(), and useString.

Here is the call graph for this function:

Variable Documentation

◆ CmdName

char* CmdName
static

Definition at line 26 of file gml2gv.c.

Referenced by initargs(), and usage().

◆ Files

char** Files
static

Definition at line 27 of file gml2gv.c.

Referenced by getFile(), and initargs().

◆ gname

char* gname = ""
static

Definition at line 24 of file gml2gv.c.

Referenced by blockName(), clone_graph(), initargs(), main(), spanning_tree(), and wcp().

◆ outFile

FILE* outFile
static

Definition at line 25 of file gml2gv.c.

Referenced by initargs(), and main().

◆ useString

char* useString
static
Initial value:
= "Usage: %s [-v?] [-g<name>] [-o<file>] <files>\n\
-g<name> : use <name> as template for graph names\n\
-v : verbose mode\n\
-o<file> : output to <file> (stdout)\n\
-? : print usage\n\
If no files are specified, stdin is used\n"

Definition at line 52 of file gml2gv.c.

Referenced by usage().

◆ Verbose

bool Verbose
static

Definition at line 23 of file gml2gv.c.

Referenced by addGrid(), addXLabels(), adjust(), agglomerative_ink_bundling(), Agglomerative_Ink_Bundling_establish(), agglomerative_ink_bundling_internal(), applyAttr(), arrayRects(), attached_clustering(), attachOrthoEdges(), bundle(), cccomps(), check_compatibility(), checkpath(), choose_node(), circleLayout(), cleanup2(), color_blend_rgb2lab(), computeStep(), conjugate_gradient(), countOverlap(), country_graph_coloring(), deriveGraph(), diffeq_model(), doNeighbor(), doRep(), dot_rank(), dotneato_args_initialize(), edge_bundling(), edge_distinct_coloring(), esepFactor(), fdp_initParams(), fdp_xLayout(), find_blocks(), finishEdge(), fits(), force_directed_edge_bundling(), furtherest_point(), furtherest_point_in_list(), genBox(), genPoly(), get_font_mapping(), get_polygons(), getAdjustMode(), getPackInfo(), gridRepulse(), gvParseArgs(), gvRenderJobs(), Import_coord_clusters_from_dot(), improve_antibandwidth_by_swapping(), improve_contiguity(), init(), init(), init(), init(), init(), init_mincross(), init_params(), init_xdot(), initargs(), initial_positions(), kkNeato(), lab_gamut(), layout(), layout(), layoutTree(), main(), main(), majorization(), make_map_from_rectangle_groups(), make_map_internal(), makeMap(), makePolyline(), makeSpline(), mdsModel(), merge2(), mincross(), modularity_ink_bundling(), Multilevel_coarsen(), Multilevel_coarsen_internal(), Multilevel_establish(), Multilevel_Modularity_Clustering_establish(), Multilevel_MQ_Clustering_establish(), multilevel_spring_electrical_embedding(), node_distinct_coloring(), node_distinct_coloring_internal2(), parsePackModeInfo(), placeFixed(), plot_dot_polygons(), polyGraphs(), polyRects(), post_process_smoothing(), printData(), rank2(), realIntersect(), removeOverlapWith(), reposition(), routesplinesinit(), routesplinesterm(), sAdjust(), scAdjust(), scan_graph_mode(), sepFactor(), setAbsolutePos(), sfdp_layout(), sgd(), shortest_path(), simpleScale(), solve_model(), solveCircuit(), spline_edges_(), spring_electrical_embedding(), spring_electrical_embedding_fast(), spring_electrical_embedding_slow(), squarify(), stress_majorization_kD_mkernel(), StressMajorizationSmoother_smooth(), textspan_size(), vAdjust(), walkTree(), x_layout(), and xinit_params().