Graphviz
2.41.20171026.1811
|
#include "dot.h"
Go to the source code of this file.
Data Structures | |
struct | info_t |
Macros | |
#define | MARK(v) (ND_mark(v)) |
#define | saveorder(v) (ND_coord(v)).x |
#define | flatindex(v) ND_low(v) |
#define | ND_x(n) (((info_t*)AGDATA(n))->x) |
#define | ND_lo(n) (((info_t*)AGDATA(n))->lo) |
#define | ND_hi(n) (((info_t*)AGDATA(n))->hi) |
#define | ND_np(n) (((info_t*)AGDATA(n))->np) |
#define | ND_idx(n) (ND_order(ND_np(n))) |
#define | isBackedge(e) (ND_idx(aghead(e)) > ND_idx(agtail(e))) |
#define | ELT(M, i, j) (M->data[((i)*M->ncols)+(j)]) |
#define | VAL(node, port) (MC_SCALE * ND_order(node) + (port).order) |
#define | ORDINARY 0 |
#define | SINGLETON 1 |
#define | VIRTUALNODE 2 |
#define | NTYPES 3 |
#define | C_EE 1 |
#define | C_VS 2 |
#define | C_SS 2 |
#define | C_VV 4 |
Functions | |
void | checkLabelOrder (graph_t *g) |
void | dot_mincross (graph_t *g, int doBalance) |
void | save_vlist (graph_t *g) |
void | rec_save_vlists (graph_t *g) |
void | rec_reset_vlists (graph_t *g) |
void | flat_rev (Agraph_t *g, Agedge_t *e) |
void | allocate_ranks (graph_t *g) |
void | install_in_rank (graph_t *g, node_t *n) |
void | build_ranks (graph_t *g, int pass) |
void | enqueue_neighbors (nodequeue *q, node_t *n0, int pass) |
int | ncross (graph_t *g) |
void | virtual_weight (edge_t *e) |
#define C_EE 1 |
Definition at line 1880 of file mincross.c.
#define C_SS 2 |
Definition at line 1882 of file mincross.c.
#define C_VS 2 |
Definition at line 1881 of file mincross.c.
#define C_VV 4 |
Definition at line 1883 of file mincross.c.
#define ELT | ( | M, | |
i, | |||
j | |||
) | (M->data[((i)*M->ncols)+(j)]) |
Definition at line 385 of file mincross.c.
#define flatindex | ( | v | ) | ND_low(v) |
Definition at line 27 of file mincross.c.
Definition at line 175 of file mincross.c.
#define MARK | ( | v | ) | (ND_mark(v)) |
Definition at line 25 of file mincross.c.
Referenced by build_ranks(), and enqueue_neighbors().
Definition at line 159 of file mincross.c.
Referenced by checkLabelOrder().
Definition at line 161 of file mincross.c.
Definition at line 158 of file mincross.c.
Referenced by checkLabelOrder().
Definition at line 160 of file mincross.c.
Referenced by checkLabelOrder().
Definition at line 157 of file mincross.c.
#define NTYPES 3 |
Definition at line 1878 of file mincross.c.
#define ORDINARY 0 |
Definition at line 1875 of file mincross.c.
#define saveorder | ( | v | ) | (ND_coord(v)).x |
Definition at line 26 of file mincross.c.
#define SINGLETON 1 |
Definition at line 1876 of file mincross.c.
Definition at line 1804 of file mincross.c.
#define VIRTUALNODE 2 |
Definition at line 1877 of file mincross.c.
void allocate_ranks | ( | graph_t * | g | ) |
Definition at line 1301 of file mincross.c.
References agfstnode(), agfstout(), aghead(), agnxtnode(), agnxtout(), agtail(), GD_maxrank, GD_minrank, GD_rank, N_NEW, and ND_rank.
Referenced by expand_cluster().
Definition at line 1379 of file mincross.c.
References agerr(), AGERR, aghead(), agtail(), assert, CLUSTER, dequeue(), dot_root(), enqueue(), enqueue_neighbors(), exchange, FALSE, free_queue(), GD_flip, GD_maxrank, GD_minrank, GD_n_nodes, GD_nlist, GD_rank, install_cluster(), install_in_rank(), MARK, ncross(), ND_in, ND_next, ND_out, ND_ranktype, new_queue(), NULL, and TRUE.
Referenced by expand_cluster().
void checkLabelOrder | ( | graph_t * | g | ) |
Definition at line 287 of file mincross.c.
References agbindrec(), agclose(), aghead(), agnnodes(), agnode(), agopen(), Agstrictdirected, GD_maxrank, GD_minrank, GD_rank, rank_t::n, ND_alg, ND_hi, ND_lo, ND_np, ND_order, ND_out, NULL, and rank_t::v.
Referenced by flat_edges().
Definition at line 332 of file mincross.c.
References agget(), GD_clust, GD_comp, GD_n_cluster, mapbool(), mark_lowclusters(), and TRUE.
Definition at line 1441 of file mincross.c.
References aghead(), agtail(), enqueue(), FALSE, MARK, ND_in, ND_out, and TRUE.
Referenced by build_ranks(), and install_cluster().
Definition at line 1203 of file mincross.c.
References aghead(), agtail(), ED_edge_type, ED_label, ED_to_orig, ED_to_virt, elist_append, flat_edge(), FLATORDER, merge_oneway(), ND_flat_out, ND_other, new_virtual_edge(), NULL, and REVERSED.
Definition at line 1331 of file mincross.c.
References agerr(), AGERR, agnameof(), assert, GD_maxrank, GD_minrank, GD_nlist, GD_rank, ND_next, ND_order, ND_rank, and NULL.
Referenced by build_ranks(), and install_cluster().
Definition at line 1741 of file mincross.c.
References GD_maxrank, GD_minrank, GD_rank, and TRUE.
Referenced by build_ranks().
void rec_reset_vlists | ( | graph_t * | g | ) |
Definition at line 1090 of file mincross.c.
References assert, dot_root(), GD_clust, GD_maxrank, GD_minrank, GD_n_cluster, GD_rank, GD_rankleader, ND_order, and rec_reset_vlists().
Referenced by flat_edges(), and rec_reset_vlists().
void rec_save_vlists | ( | graph_t * | g | ) |
Definition at line 1080 of file mincross.c.
References GD_clust, GD_n_cluster, rec_save_vlists(), and save_vlist().
Referenced by flat_edges(), and rec_save_vlists().
void save_vlist | ( | graph_t * | g | ) |
Definition at line 1070 of file mincross.c.
References GD_maxrank, GD_minrank, GD_rank, and GD_rankleader.
Referenced by rec_save_vlists().