transitive reduction filter for directed graphs, API: cgraph.h, implements graphviz_tred, used in cmd/tools/tred.c
More...
#include <cgraph/cghdr.h>
#include <cgraph/list.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <util/alloc.h>
Go to the source code of this file.
◆ agrootof
#define agrootof |
( |
|
n | ) |
((n)->root) |
◆ DISTANCE
#define DISTANCE |
( |
|
ninfo, |
|
|
|
n |
|
) |
| (ninfo[AGSEQ(n)].dist) |
◆ ON_STACK
#define ON_STACK |
( |
|
ninfo, |
|
|
|
n |
|
) |
| (ninfo[AGSEQ(n)].on_stack) |
◆ dfs()
Definition at line 98 of file tred.c.
References agdelete(), agfstout(), aghead, AGINEDGE, agnameof(), agnxtout(), AGOUTEDGE, agrootof, agtail, Agedge_s::base, DISTANCE, Agedgepair_s::in, Agedge_s::node, NULL, Agtag_s::objtype, ON_STACK, opts, Agedgepair_s::out, pop(), prev, push(), Agobj_s::tag, top(), and uchar_min().
Referenced by graphviz_tred().
◆ pop()
◆ push()
◆ top()
static Agedge_t * top |
( |
edge_stack_t * |
sp | ) |
|
|
static |
Definition at line 73 of file tred.c.
References NULL.
Referenced by compile_clusters(), construct_graph(), dfs(), figColorResolve(), pop(), rcross(), set_boundaries(), SWIG_Lua_dostring(), voronoi(), write_dict(), write_dicts(), write_edge(), write_edges(), write_graph(), write_hdr(), write_hdr(), write_node(), write_nodes(), write_subgs(), writeHdr(), and writeTrl().
◆ uchar_min()
static unsigned char uchar_min |
( |
unsigned char |
a, |
|
|
unsigned char |
b |
|
) |
| |
|
static |