Graphviz 13.0.0~dev.20241220.2304
|
#include "config.h"
#include "../tools/openFile.h"
#include <algorithm>
#include <cgraph/cgraph.h>
#include <cgraph/ingraphs.h>
#include <getopt.h>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <unordered_map>
#include <utility>
#include <util/exit.h>
#include <vector>
#include <sparse/DotIO.h>
#include <mingle/edge_bundling.h>
#include <mingle/nearest_neighbor_graph.h>
Go to the source code of this file.
Data Structures | |
struct | etoi_t |
struct | opts_t |
struct | PointHash |
a hash derivation function for int pairs More... | |
Macros | |
#define | ED_idx(e) (((etoi_t*)AGDATA(e))->idx) |
Typedefs | |
using | PointMap = std::unordered_map< std::pair< int, int >, int, PointHash > |
Enumerations | |
enum | fmt_t { FMT_GV , FMT_SIMPLE } |
Functions | |
static void | usage (int eval) |
static int | checkG (Agraph_t *g) |
static void | init (int argc, char *argv[], opts_t &opts) |
static void | genBundleSpline (const pedge &edge, std::ostream &os) |
static void | genBundleInfo (const pedge &edge, std::ostream &os) |
static void | genBundleColors (const pedge &edge, std::ostream &os, double maxwgt) |
static void | export_dot (FILE *fp, int ne, const std::vector< pedge > &edges, Agraph_t *g) |
static int | bundle (Agraph_t *g, const opts_t &opts) |
int | main (int argc, char *argv[]) |
Variables | |
static char * | fname |
static FILE * | outfile |
static char ** | Files |
static const char | use_msg [] |
Definition at line 39 of file minglemain.cpp.
Definition at line 364 of file minglemain.cpp.
enum fmt_t |
Enumerator | |
---|---|
FMT_GV | |
FMT_SIMPLE |
Definition at line 29 of file minglemain.cpp.
Definition at line 366 of file minglemain.cpp.
References A, agbindrec(), agerr(), agerrorf(), agfstnode(), agfstout(), aghead, agnameof(), agnxtnode(), agnxtout(), AGPREV, agtail, opts_t::angle, opts_t::angle_param, B, checkG(), opts_t::compatibility_method, dim, ED_idx, edge_bundling(), export_dot(), opts_t::fmt, FMT_GV, fname, FORMAT_CSR, free(), getDotNodeID(), initDotIO(), opts_t::K, opts_t::max_recursion, opts_t::method, nearest_neighbor_graph(), opts_t::nneighbors, opts, opts_t::outer_iter, outfile, pedge_export_gv(), setDotNodeID(), SparseMatrix_delete(), SparseMatrix_import_dot(), SparseMatrix_symmetrize(), and Verbose.
Referenced by main().
|
static |
Definition at line 84 of file minglemain.cpp.
References agfstnode(), agfstout(), aghead, agnxtnode(), and agnxtout().
Referenced by bundle().
|
static |
Definition at line 312 of file minglemain.cpp.
References agattr(), AGEDGE, agfstnode(), agfstout(), agnxtnode(), agnxtout(), agwrite(), agxset(), ED_idx, edge, genBundleColors(), genBundleInfo(), and genBundleSpline().
Referenced by bundle().
|
static |
Definition at line 282 of file minglemain.cpp.
References dim, edge, and len().
Referenced by export_dot().
|
static |
Definition at line 264 of file minglemain.cpp.
Referenced by export_dot().
|
static |
Definition at line 236 of file minglemain.cpp.
Referenced by export_dot().
|
static |
Definition at line 102 of file minglemain.cpp.
References opts_t::angle, opts_t::angle_param, cmd, COMPATIBILITY_FULL, opts_t::compatibility_method, Files, opts_t::fmt, FMT_GV, FMT_SIMPLE, opts_t::K, M_PI, opts_t::max_recursion, opts_t::method, METHOD_INK, METHOD_INK_AGGLOMERATE, opts_t::nneighbors, openFile(), opts, opts_t::outer_iter, outfile, usage, and Verbose.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 459 of file minglemain.cpp.
References agclose(), agnameof(), bundle(), fileName(), Files, fname, graphviz_exit(), init(), newIngraph(), nextGraph(), opts, prev, and Verbose.
|
static |
Definition at line 73 of file minglemain.cpp.
References eval(), graphviz_exit(), and use_msg.
|
static |
Definition at line 55 of file minglemain.cpp.
|
static |
Definition at line 53 of file minglemain.cpp.
|
static |
Definition at line 54 of file minglemain.cpp.
|
static |
Definition at line 57 of file minglemain.cpp.
Referenced by usage().