|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Generate LaTeX/eepic pictures of graphs and digraphs. More...
#include <iostream>#include <fstream>#include <string>#include <tpl_dynTreap.H>#include <tpl_dynArray.H>#include <tpl_sort_utils.H>#include <tpl_graph.H>#include <treepic_utils.H>#include <parse_utils.H>#include <eepicgeom.H>#include <tclap/CmdLine.h>Go to the source code of this file.
Classes | |
| struct | Tag_Data |
| struct | Node_Data |
| struct | Arc_Data |
Macros | |
| #define | TERMINATE(n) (save_parameters(), exit(n)) |
| #define | X(p) ((p)->get_info().x) |
| #define | Y(p) ((p)->get_info().y) |
| #define | HR(p) ((p)->get_info().hr) |
| #define | VR(p) ((p)->get_info().vr) |
| #define | SHADOW(p) ((p)->get_info().shadow) |
| #define | WITHOUT(p) ((p)->get_info().without) |
| #define | NUMBER(p) ((p)->get_info().number) |
| #define | STRING(p) ((p)->get_info().name) |
| #define | XOFFSET(p) ((p)->get_info().xoffset) |
| #define | YOFFSET(p) ((p)->get_info().yoffset) |
| #define | TAGS(p) ((p)->get_info().tag_list) |
| #define | DYNARRAY_APPEND(array, item) (array[array.size()] = item) |
| #define | STRING_ARC(a) ((a)->get_info().data) |
| #define | XOFFSET_ARC(a) ((a)->get_info().xoffset) |
| #define | YOFFSET_ARC(a) ((a)->get_info().yoffset) |
| #define | SHADOW_ARC(a) ((a)->get_info().shadow) |
| #define | DASHED_ARC(a) ((a)->get_info().dashed) |
| #define | CURVE_ARC(a) ((a)->get_info().curve) |
| #define | CURVE_LEFT(a) ((a)->get_info().left) |
| #define | CURVE_MID(a) ((a)->get_info().curve_mid) |
Typedefs | |
| typedef Token_Type | Tag_Option |
| typedef double | Coord |
| typedef Graph_Node< Node_Data > | Node |
| typedef Graph_Arc< Arc_Data > | Arc |
| typedef List_Graph< Node, Arc > | Graph |
| typedef List_Digraph< Node, Arc > | Digraph |
Enumerations | |
| enum | Token_Type { COMMENT , DIGRAPH , GRAPH , POLY_DIGRAPH , POLY_GRAPH , NET_GRAPH , NET_DIGRAPH , CROSS_NET_GRAPH , CROSS_NET_DIGRAPH , NODE , ARC , SHADOW_NODE , SHADOW_ARC , DASHED_ARC , DASHED_CURVE_ARC , CURVE_ARC , SHADOW_CURVE_ARC , NODE_TEXT , ARC_TEXT , TAG , WITHOUT_NODE , SHADOW_PATH , PATH , LEFT , RIGHT , HRADIO , VRADIO , STRING , NORTH , SOUTH , EAST , WEST , NORTH_EAST , NORTH_WEST , SOUTH_EAST , SOUTH_WEST , END_FILE , INVALID } |
Variables | |
| bool | tiny_keys |
| Global flag to enable tiny font size for keys/labels. | |
| double | hr = 8 |
| double | vr = 8 |
| double | h_size = 3000 |
| double | v_size = 3000 |
| double | zoom_factor = 1 |
| double | hd = 2 * hr |
| double | vd = 2 * vr |
| double | x_offset = 0 |
| double | y_offset = 0 |
| double | x_picture_offset = 0 |
| double | y_picture_offset = 0 |
| long | line_dimension = 100 |
| string | command_line |
| string | input_file_name |
| string | output_file_name |
| bool | draw_node_mode = true |
| bool | squarize = true |
| bool | latex_header = false |
| bool | ellipses = true |
| bool | rectangles = false |
| bool | not_nodes = false |
| const char * | parameters_file_name = "./.graphpic" |
| DynTreapTree< string, Graph::Node * > | node_table |
| size_t | num_nodes = 0 |
| DynArray< Graph::Node * > | nodes |
| DynArray< Graph::Arc * > | arcs |
Generate LaTeX/eepic pictures of graphs and digraphs.
This utility program reads a graph specification from a file and generates high-quality LaTeX code for visualizing graphs (undirected) and digraphs (directed) using the eepic package. It's designed for creating publication-quality graph diagrams for academic papers, presentations, and educational materials.
graphpic is essential for:
NET-*, CROSS-NET-*)POLY-*)The input file uses a small domain-specific language (DSL). Graphs are declared with a type and a node count; nodes are identified by number (0..N-1) and are created implicitly by the declaration.
GRAPH <num-nodes>: Undirected graphDIGRAPH <num-nodes>: Directed graphPOLY-GRAPH <num-nodes> <side-size> <rotation>: Regular polygon layoutPOLY-DIGRAPH <num-nodes> <side-size> <rotation>: Regular polygon layout (directed)NET-GRAPH <num-nodes> <num-levels> <x-dist> <y-dist>: Layered network layoutNET-DIGRAPH <num-nodes> <num-levels> <x-dist> <y-dist>: Layered network layout (directed)CROSS-NET-GRAPH <num-nodes> <nodes-by-level> <x-dist> <y-dist>: Layered cross layoutCROSS-NET-DIGRAPH <num-nodes> <nodes-by-level> <x-dist> <y-dist>: Layered cross layout (directed)NODE <node-num> <name> <x> <y>: Define node name and positionSHADOW-NODE <node-num>: Draw node with shadowWITHOUT-NODE <node-num>: Do not draw the node ellipseNODE-TEXT <node-num> <text> <xoffset> <yoffset>: Node label and label offsetTAG <node-num> <text> <sense> <xoffset> <yoffset>: Add an annotation tag where <sense> is one of N, S, E, W, NE, NW, SE, SW.HRADIO <node-num> <radius>: Horizontal radius of the node ellipseVRADIO <node-num> <radius>: Vertical radius of the node ellipseARC <src-num> <tgt-num>: Insert an arc (or an undirected edge in GRAPH)ARC-TEXT <src-num> <tgt-num> <text> <xoffset> <yoffset>: Label on an arcDASHED-ARC <src-num> <tgt-num>: Dashed arcCURVE-ARC <src-num> <tgt-num> <mid-point> <L|R>: Curved arcSHADOW-ARC <src-num> <tgt-num>: Arc with shadowSHADOW-CURVE-ARC <src-num> <tgt-num> <mid-point> <L|R>: Curved arc with shadowDASHED-CURVE-ARC <src-num> <tgt-num> <mid-point> <L|R>: Curved dashed arcIf -o is not given, the output defaults to the input name with extension .eepic.
Generates LaTeX code using the eepic package:
Definition in file graphpic.C.
| #define CURVE_ARC | ( | a | ) | ((a)->get_info().curve) |
Definition at line 389 of file graphpic.C.
| #define CURVE_LEFT | ( | a | ) | ((a)->get_info().left) |
Definition at line 390 of file graphpic.C.
| #define CURVE_MID | ( | a | ) | ((a)->get_info().curve_mid) |
Definition at line 391 of file graphpic.C.
| #define DASHED_ARC | ( | a | ) | ((a)->get_info().dashed) |
Definition at line 388 of file graphpic.C.
| #define DYNARRAY_APPEND | ( | array, | |
| item | |||
| ) | (array[array.size()] = item) |
Definition at line 361 of file graphpic.C.
| #define HR | ( | p | ) | ((p)->get_info().hr) |
Definition at line 351 of file graphpic.C.
| #define NUMBER | ( | p | ) | ((p)->get_info().number) |
Definition at line 355 of file graphpic.C.
| #define SHADOW | ( | p | ) | ((p)->get_info().shadow) |
Definition at line 353 of file graphpic.C.
| #define SHADOW_ARC | ( | a | ) | ((a)->get_info().shadow) |
Definition at line 387 of file graphpic.C.
| #define STRING | ( | p | ) | ((p)->get_info().name) |
Definition at line 356 of file graphpic.C.
| #define STRING_ARC | ( | a | ) | ((a)->get_info().data) |
Definition at line 384 of file graphpic.C.
| #define TAGS | ( | p | ) | ((p)->get_info().tag_list) |
Definition at line 359 of file graphpic.C.
| #define TERMINATE | ( | n | ) | (save_parameters(), exit(n)) |
Definition at line 189 of file graphpic.C.
| #define VR | ( | p | ) | ((p)->get_info().vr) |
Definition at line 352 of file graphpic.C.
| #define WITHOUT | ( | p | ) | ((p)->get_info().without) |
Definition at line 354 of file graphpic.C.
| #define X | ( | p | ) | ((p)->get_info().x) |
Definition at line 349 of file graphpic.C.
| #define XOFFSET | ( | p | ) | ((p)->get_info().xoffset) |
Definition at line 357 of file graphpic.C.
| #define XOFFSET_ARC | ( | a | ) | ((a)->get_info().xoffset) |
Definition at line 385 of file graphpic.C.
| #define Y | ( | p | ) | ((p)->get_info().y) |
Definition at line 350 of file graphpic.C.
| #define YOFFSET | ( | p | ) | ((p)->get_info().yoffset) |
Definition at line 358 of file graphpic.C.
| #define YOFFSET_ARC | ( | a | ) | ((a)->get_info().yoffset) |
Definition at line 386 of file graphpic.C.
Definition at line 396 of file graphpic.C.
| typedef double Coord |
Definition at line 316 of file graphpic.C.
| typedef List_Digraph<Node, Arc> Digraph |
Definition at line 400 of file graphpic.C.
| typedef List_Graph<Node, Arc> Graph |
Definition at line 398 of file graphpic.C.
| typedef Graph_Node<Node_Data> Node |
Definition at line 394 of file graphpic.C.
| typedef Token_Type Tag_Option |
Definition at line 314 of file graphpic.C.
| enum Token_Type |
Definition at line 194 of file graphpic.C.
| Segment arc_segment | ( | Graph::Node * | src, |
| Graph::Node * | tgt | ||
| ) |
Definition at line 1118 of file graphpic.C.
References HR, l, Aleph::maps(), VR, X, and Y.
Referenced by process_arc().
| Polygon arc_trigon | ( | Graph::Node * | src, |
| Graph::Node * | tgt, | ||
| const double & | dist, | ||
| const bool & | left | ||
| ) |
Definition at line 1147 of file graphpic.C.
References Polygon::add_vertex(), hr, HR, l, Aleph::maps(), vr, VR, X, and Y.
Referenced by process_arc().
Definition at line 639 of file graphpic.C.
References AH_ERROR, GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::load_number(), Aleph::maps(), nodes, num_nodes, X, Y, and y.
Referenced by parse_graph_definition().
Definition at line 596 of file graphpic.C.
References AH_ERROR, GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::load_number(), Aleph::maps(), nodes, num_nodes, X, Y, and y.
Referenced by parse_graph_definition().
Definition at line 564 of file graphpic.C.
References AH_ERROR, Regular_Polygon::get_vertex(), Aleph::load_number(), Aleph::maps(), nodes, num_nodes, X, and Y.
Referenced by parse_graph_definition().
| void generate_epilogue | ( | ofstream & | output | ) |
Definition at line 1508 of file graphpic.C.
References latex_header, Aleph::maps(), and output.
Referenced by generate_graph().
| void generate_graph | ( | Graph * | g, |
| ofstream & | output | ||
| ) |
Definition at line 1517 of file graphpic.C.
References generate_epilogue(), generate_picture(), generate_prologue(), and output.
Referenced by main().
| void generate_picture | ( | ofstream & | output, |
| Graph * | g | ||
| ) |
Definition at line 1492 of file graphpic.C.
References arcs, Eepic_Plane::draw(), h_size, output, process_arc(), process_node(), squarize, v_size, x_picture_offset, y_picture_offset, Eepic_Plane::zoom(), and zoom_factor.
Referenced by generate_graph().
| void generate_prologue | ( | ofstream & | output | ) |
Definition at line 1066 of file graphpic.C.
References command_line, input_file_name, latex_header, Aleph::maps(), output, and output_file_name.
Referenced by generate_graph().
| Token_Type get_token | ( | ifstream & | input_stream | ) |
Definition at line 411 of file graphpic.C.
References ARC, ARC_TEXT, Aleph::Buffer_Size, Aleph::close_token_scanning(), COMMENT, CROSS_NET_DIGRAPH, CROSS_NET_GRAPH, CURVE_ARC, DASHED_ARC, DASHED_CURVE_ARC, DIGRAPH, EAST, END_FILE, GRAPH, HRADIO, Aleph::init_token_scanning(), INVALID, LEFT, Aleph::maps(), NET_DIGRAPH, NET_GRAPH, NODE, NODE_TEXT, NORTH, NORTH_EAST, NORTH_WEST, POLY_DIGRAPH, POLY_GRAPH, Aleph::put_char_in_buffer(), Aleph::read_char_from_stream(), RIGHT, SHADOW_ARC, SHADOW_CURVE_ARC, SHADOW_NODE, SHADOW_PATH, Aleph::skip_white_spaces(), SOUTH, SOUTH_EAST, SOUTH_WEST, STRING, TAG, VRADIO, WEST, and WITHOUT_NODE.
Referenced by parse_curve_arc_definition(), parse_graph_definition(), parse_tag_definition(), and read_input_and_build_graph().
| Graph::Node * load_node | ( | ifstream & | input_stream | ) |
Definition at line 747 of file graphpic.C.
References AH_ERROR, Aleph::load_number(), Aleph::maps(), nodes, and num_nodes.
Referenced by parse_hradio_definition(), parse_node_definition(), parse_node_text_definition(), parse_shadow_node_definition(), parse_tag_definition(), parse_vradio_definition(), and parse_without_node_definition().
| void load_nodes | ( | ifstream & | input_stream, |
| Graph::Node *& | src_node, | ||
| Graph::Node *& | tgt_node | ||
| ) |
Definition at line 813 of file graphpic.C.
References AH_ERROR, Aleph::load_number(), Aleph::maps(), nodes, and num_nodes.
Referenced by parse_arc_definition(), and parse_arc_text_definition().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 1527 of file graphpic.C.
References AH_ERROR, command_line, Aleph::command_line_to_string(), draw_node_mode, generate_graph(), h_size, hd, hr, input_file_name, latex_header, Aleph::maps(), output_file_name, print_parameters(), read_input_and_build_graph(), read_parameters(), resolution, save_parameters(), squarize, tiny_keys, v_size, vd, vr, x_offset, x_picture_offset, y_offset, y_picture_offset, and zoom_factor.
| Graph::Arc * parse_arc_definition | ( | ifstream & | input_stream, |
| Graph * | g | ||
| ) |
Definition at line 835 of file graphpic.C.
References arcs, DYNARRAY_APPEND, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), load_nodes(), Aleph::maps(), and Aleph::search_arc().
Referenced by parse_curve_arc_definition(), parse_dashed_arc_definition(), parse_shadow_arc_definition(), and read_input_and_build_graph().
| Graph::Arc * parse_arc_text_definition | ( | ifstream & | input_stream, |
| Graph * | g | ||
| ) |
Definition at line 875 of file graphpic.C.
References AH_ERROR, load_nodes(), Aleph::load_number(), Aleph::load_string(), Aleph::maps(), Aleph::search_arc(), STRING_ARC, XOFFSET_ARC, and YOFFSET_ARC.
Referenced by read_input_and_build_graph().
| Graph::Arc * parse_curve_arc_definition | ( | ifstream & | input_stream, |
| Graph * | g | ||
| ) |
Definition at line 896 of file graphpic.C.
References AH_ERROR, CURVE_ARC, CURVE_LEFT, CURVE_MID, get_token(), LEFT, Aleph::load_number(), Aleph::maps(), parse_arc_definition(), and RIGHT.
Referenced by parse_dashed_curve_arc_definition(), parse_shadow_curve_arc_definition(), and read_input_and_build_graph().
| Graph::Arc * parse_dashed_arc_definition | ( | ifstream & | input_stream, |
| Graph * | g | ||
| ) |
Definition at line 927 of file graphpic.C.
References DASHED_ARC, Aleph::maps(), and parse_arc_definition().
Referenced by read_input_and_build_graph().
| Graph::Arc * parse_dashed_curve_arc_definition | ( | ifstream & | input_stream, |
| Graph * | g | ||
| ) |
Definition at line 951 of file graphpic.C.
References DASHED_ARC, Aleph::maps(), and parse_curve_arc_definition().
Referenced by read_input_and_build_graph().
| Graph * parse_graph_definition | ( | ifstream & | input_stream | ) |
Definition at line 701 of file graphpic.C.
References AH_ERROR, build_cross_net_graph(), build_net_graph(), build_poly_graph(), CROSS_NET_DIGRAPH, CROSS_NET_GRAPH, DIGRAPH, get_token(), GRAPH, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::load_number(), Aleph::maps(), NET_DIGRAPH, NET_GRAPH, nodes, num_nodes, NUMBER, POLY_DIGRAPH, POLY_GRAPH, Aleph::print_parse_error_and_exit(), and Aleph::to_string().
Referenced by read_input_and_build_graph().
| void parse_hradio_definition | ( | ifstream & | input_stream | ) |
Definition at line 962 of file graphpic.C.
References HR, load_node(), Aleph::load_number(), and Aleph::maps().
Referenced by read_input_and_build_graph().
| void parse_node_definition | ( | ifstream & | input_stream | ) |
Definition at line 763 of file graphpic.C.
References load_node(), Aleph::load_number(), Aleph::load_string(), Aleph::maps(), and node_table.
Referenced by read_input_and_build_graph().
| Graph::Node * parse_node_text_definition | ( | ifstream & | input_stream | ) |
Definition at line 860 of file graphpic.C.
References load_node(), Aleph::load_number(), Aleph::load_string(), Aleph::maps(), STRING, XOFFSET, and YOFFSET.
Referenced by read_input_and_build_graph().
| Graph::Arc * parse_shadow_arc_definition | ( | ifstream & | input_stream, |
| Graph * | g | ||
| ) |
Definition at line 917 of file graphpic.C.
References Aleph::maps(), parse_arc_definition(), and SHADOW_ARC.
Referenced by read_input_and_build_graph().
| Graph::Arc * parse_shadow_curve_arc_definition | ( | ifstream & | input_stream, |
| Graph * | g | ||
| ) |
Definition at line 939 of file graphpic.C.
References Aleph::maps(), parse_curve_arc_definition(), and SHADOW_ARC.
Referenced by read_input_and_build_graph().
| void parse_shadow_node_definition | ( | ifstream & | input_stream | ) |
Definition at line 805 of file graphpic.C.
References load_node(), Aleph::maps(), and SHADOW.
Referenced by read_input_and_build_graph().
| void parse_tag_definition | ( | ifstream & | input_stream | ) |
Definition at line 779 of file graphpic.C.
References get_token(), load_node(), Aleph::load_number(), Aleph::load_string(), Aleph::maps(), NORTH, Aleph::print_parse_error_and_exit(), SOUTH_WEST, and TAGS.
Referenced by read_input_and_build_graph().
| void parse_vradio_definition | ( | ifstream & | input_stream | ) |
Definition at line 971 of file graphpic.C.
References load_node(), Aleph::load_number(), Aleph::maps(), and VR.
Referenced by read_input_and_build_graph().
| void parse_without_node_definition | ( | ifstream & | input_stream | ) |
Definition at line 797 of file graphpic.C.
References load_node(), Aleph::maps(), and WITHOUT.
Referenced by read_input_and_build_graph().
|
inline |
Definition at line 271 of file graphpic.C.
References h_size, hd, hr, Aleph::maps(), resolution, v_size, vd, vr, x_offset, x_picture_offset, y_offset, and y_picture_offset.
Referenced by main().
| void process_arc | ( | Eepic_Plane & | plane, |
| Graph * | g, | ||
| Graph::Arc * | a | ||
| ) |
Definition at line 1401 of file graphpic.C.
References arc_segment(), arc_trigon(), CURVE_ARC, CURVE_LEFT, CURVE_MID, DASHED_ARC, GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), GraphCommon< GT, Node, Arc >::is_digraph(), process_text_arc(), put_in_plane(), and SHADOW_ARC.
Referenced by generate_picture().
| void process_node | ( | Eepic_Plane & | plane, |
| Graph::Node * | p | ||
| ) |
Definition at line 1295 of file graphpic.C.
References draw_node_mode, HR, Aleph::maps(), process_tag_node(), put_in_plane(), SHADOW, STRING, VR, WITHOUT, X, XOFFSET, Y, and YOFFSET.
Referenced by generate_picture().
| void process_tag_node | ( | Eepic_Plane & | plane, |
| Graph::Node * | p | ||
| ) |
Definition at line 1200 of file graphpic.C.
References AH_ERROR, EAST, Aleph::Dlink::Iterator::has_curr(), HR, Aleph::maps(), NORTH, NORTH_EAST, NORTH_WEST, PI, PI_2, PI_4, pitag(), put_in_plane(), SOUTH, SOUTH_EAST, SOUTH_WEST, TAGS, VR, WEST, X, and Y.
Referenced by process_node().
| void process_text_arc | ( | Eepic_Plane & | plane, |
| Graph::Arc * | a, | ||
| const Segment & | arc_sg | ||
| ) |
Definition at line 1313 of file graphpic.C.
References AH_ERROR, Segment::E, Aleph::maps(), Segment::N, Segment::NE, Segment::NW, offset, put_in_plane(), Segment::S, Segment::SE, STRING_ARC, Segment::SW, vr, Segment::W, XOFFSET_ARC, and YOFFSET_ARC.
Referenced by process_arc(), and process_text_arc().
| void process_text_arc | ( | Eepic_Plane & | plane, |
| Graph::Arc * | a, | ||
| Polygon & | trigon | ||
| ) |
Definition at line 1377 of file graphpic.C.
References Aleph::maps(), process_text_arc(), and STRING_ARC.
| Graph * read_input_and_build_graph | ( | ifstream & | input_stream | ) |
Definition at line 979 of file graphpic.C.
References ARC, ARC_TEXT, COMMENT, CURVE_ARC, DASHED_ARC, DASHED_CURVE_ARC, END_FILE, get_token(), HRADIO, INVALID, Aleph::maps(), NODE, NODE_TEXT, parse_arc_definition(), parse_arc_text_definition(), parse_curve_arc_definition(), parse_dashed_arc_definition(), parse_dashed_curve_arc_definition(), parse_graph_definition(), parse_hradio_definition(), parse_node_definition(), parse_node_text_definition(), parse_shadow_arc_definition(), parse_shadow_curve_arc_definition(), parse_shadow_node_definition(), parse_tag_definition(), parse_vradio_definition(), parse_without_node_definition(), Aleph::print_parse_error_and_exit(), SHADOW_ARC, SHADOW_CURVE_ARC, SHADOW_NODE, TAG, VRADIO, and WITHOUT_NODE.
Referenced by main().
|
inline |
Definition at line 301 of file graphpic.C.
References h_size, hd, hr, Aleph::maps(), parameters_file_name, resolution, v_size, vd, vr, x_offset, x_picture_offset, y_offset, and y_picture_offset.
Referenced by main().
|
inline |
Definition at line 289 of file graphpic.C.
References h_size, hd, hr, Aleph::maps(), output, parameters_file_name, resolution, v_size, vd, vr, x_offset, x_picture_offset, y_offset, and y_picture_offset.
Referenced by main().
| DynArray<Graph::Arc *> arcs |
Definition at line 408 of file graphpic.C.
Referenced by Aleph::Floyd_All_Shortest_Paths< GT, Distance, SA >::Floyd_All_Shortest_Paths(), Aleph::Karger_Min_Cut< GT, SA >::__fast_karger_min_cut(), Aleph::Karger_Min_Cut< GT, SA >::build_kgraph(), Aleph::build_residual_net(), Aleph::build_spanning_tree(), Aleph::Karger_Min_Cut< GT, SA >::compute_min_cut_size(), Random_Network_Flow< Net >::connect_ranks(), Aleph::Karger_Min_Cut< GT, SA >::contract(), Aleph::Karger_Min_Cut< GT, SA >::fast(), generate_picture(), Aleph::Karger_Min_Cut< GT, SA >::karger_min_cut(), Aleph::Build_Spanning_Tree< GT >::operator()(), Aleph::Build_Spanning_Tree< GT >::operator()(), parse_arc_definition(), Aleph::Karger_Min_Cut< GT, SA >::rebuild_arc_index(), Aleph::residual_to_net(), Aleph::solve_transportation(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), Aleph::Karger_Min_Cut< GT, SA >::update_arcs(), and Aleph::Xml_Graph< GT, Node_Reader, Arc_Reader, Node_Writer, Arc_Writer >::write_graph().
| string command_line |
Definition at line 253 of file graphpic.C.
Referenced by generate_prologue(), and main().
| bool draw_node_mode = true |
Definition at line 257 of file graphpic.C.
Referenced by main(), and process_node().
| bool ellipses = true |
Definition at line 262 of file graphpic.C.
| double h_size = 3000 |
Definition at line 239 of file graphpic.C.
Referenced by generate_picture(), main(), print_parameters(), read_parameters(), and save_parameters().
| double hd = 2 * hr |
Definition at line 244 of file graphpic.C.
Referenced by main(), print_parameters(), read_parameters(), and save_parameters().
| double hr = 8 |
Definition at line 236 of file graphpic.C.
Referenced by arc_trigon(), main(), print_parameters(), read_parameters(), and save_parameters().
| string input_file_name |
Definition at line 254 of file graphpic.C.
Referenced by generate_prologue(), and main().
| bool latex_header = false |
Definition at line 261 of file graphpic.C.
Referenced by generate_epilogue(), generate_prologue(), and main().
| long line_dimension = 100 |
Definition at line 251 of file graphpic.C.
| DynTreapTree<string, Graph::Node *> node_table |
Definition at line 402 of file graphpic.C.
Referenced by parse_node_definition().
| DynArray<Graph::Node *> nodes |
Definition at line 406 of file graphpic.C.
Referenced by NodePool::~NodePool(), add_super_source_and_sink(), build_city_graph(), HamiltonianUndirectedTest::build_complete_graph(), build_complete_graph(), build_complete_graph(), build_cross_net_graph(), build_cycle_graph(), build_grid_network(), build_net_graph(), build_path_graph(), build_poly_graph(), build_random_graph(), build_random_graph(), build_tree_graph(), compare_with_floyd(), Aleph::compute_cut_nodes(), Aleph::Map_Matrix_Graph< GT, SA >::copy_list_graph(), create_chain(), FindPathTest::create_complete_graph(), create_cycle(), create_cycle_graph(), create_grid_graph(), FindPathTest::create_linear_graph(), create_path_graph(), demo_adjacency_matrix(), demo_density(), Aleph::Testing::RandomNetworkGenerator< Net >::ensure_path(), example_basic_all_pairs(), example_spfa_comparison(), Aleph::Find_Eulerian_Path< GT, SN, SA >::find_node_sequence(), NodePool::forget(), Aleph::Testing::ErdosRenyiGenerator< Net >::generate(), Aleph::generate_graphpic(), Aleph::generate_graphviz(), Aleph::generate_grid_network(), generate_random_graph(), Aleph::generate_random_network(), Aleph::matgraph_detail::get_node(), Aleph::matgraph_detail::get_node(), Aleph::import_network_from_dimacs(), load_node(), load_nodes(), main(), NodePool::make(), TdRbTreeTest::make_nodes(), TdRbTreeCustomCompareTest::make_nodes(), TdRbTreeRkTest::make_nodes(), Aleph::matgraph_detail::node_index(), Aleph::Ady_Mat< GT, __Entry_Type, SA >::operate_all_arcs_list_graph(), Aleph::Ady_Mat< GT, __Entry_Type, SA >::operate_all_arcs_list_graph(), Aleph::Ady_Mat< GT, __Entry_Type, SA >::operate_all_arcs_matrix(), Aleph::Ady_Mat< GT, __Entry_Type, SA >::operate_all_arcs_matrix(), parse_graph_definition(), print_grid_with_path(), print_partition(), Aleph::search_node(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), Aleph::Test_Single_Graph< GT, SN, SA >::test_node(), test_performance_ks(), test_performance_sw(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), and Aleph::Xml_Graph< GT, Node_Reader, Arc_Reader, Node_Writer, Arc_Writer >::write_graph().
| bool not_nodes = false |
Definition at line 264 of file graphpic.C.
| size_t num_nodes = 0 |
Definition at line 404 of file graphpic.C.
Referenced by build_cross_net_graph(), build_net_graph(), build_poly_graph(), load_node(), load_nodes(), and parse_graph_definition().
| string output_file_name |
Definition at line 255 of file graphpic.C.
Referenced by generate_prologue(), and main().
| const char* parameters_file_name = "./.graphpic" |
Definition at line 267 of file graphpic.C.
Referenced by read_parameters(), and save_parameters().
| bool rectangles = false |
Definition at line 263 of file graphpic.C.
| bool squarize = true |
Definition at line 259 of file graphpic.C.
Referenced by Eepic_Plane::compute_geom_plane(), Eepic_Plane::draw(), generate_picture(), and main().
|
extern |
Global flag to enable tiny font size for keys/labels.
When set to true, text labels will be rendered using LaTeX's \tiny font size modifier. Useful for dense diagrams with many labels.
Definition at line 59 of file eepicgeom_test.cc.
Referenced by main(), and put_string().
| double v_size = 3000 |
Definition at line 240 of file graphpic.C.
Referenced by generate_picture(), main(), print_parameters(), read_parameters(), and save_parameters().
| double vd = 2 * vr |
Definition at line 245 of file graphpic.C.
Referenced by main(), print_parameters(), read_parameters(), and save_parameters().
| double vr = 8 |
Definition at line 237 of file graphpic.C.
Referenced by arc_trigon(), main(), print_parameters(), process_text_arc(), read_parameters(), and save_parameters().
| double x_offset = 0 |
Definition at line 246 of file graphpic.C.
Referenced by main(), print_parameters(), read_parameters(), and save_parameters().
| double x_picture_offset = 0 |
Definition at line 248 of file graphpic.C.
Referenced by generate_picture(), main(), print_parameters(), read_parameters(), and save_parameters().
| double y_offset = 0 |
Definition at line 247 of file graphpic.C.
Referenced by main(), print_parameters(), read_parameters(), and save_parameters().
| double y_picture_offset = 0 |
Definition at line 249 of file graphpic.C.
Referenced by generate_picture(), main(), print_parameters(), read_parameters(), and save_parameters().
| double zoom_factor = 1 |
Definition at line 242 of file graphpic.C.
Referenced by generate_picture(), and main().