31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>The</strong> corresponding types are:<br />

gw_node_shape = { circle_node, ellipse_node, square_node, rectangle_node }<br />

gw_edge_shape = { poly_edge, circle_edge, bezier_edge, spline_edge }<br />

gw_position = { central_pos, northwest_pos, north_pos,<br />

northeast_pos, east_pos, southeast_pos,<br />

south_pos, southwest_pos, west_pos }<br />

gw_label_type = { no_label, user_label, data_label, index_label }<br />

gw_edge_style = { solid_edge, dashed_edge, dotted_edge, dashed_dotted_edge }<br />

gw_edge_dir = { undirected_edge, directed_edge, bidirected_edge, rdirected_edge };<br />

#include < <strong>LEDA</strong>/graphics/graphwin.h ><br />

2. Creation<br />

GraphWin gw(graph& G, int w, int h, const char ∗ win label = ””);<br />

creates a graph window for graph G with a display window of size<br />

w pixels × h pixels. If win label is not empty it is used as the frame<br />

label of the window, otherwise, a default frame label is used.<br />

GraphWin gw(graph& G, const char ∗ win label = ””);<br />

creates a graph window for graph G with a display window of default<br />

size and frame label win label.<br />

GraphWin gw(int w, int h, const char ∗ win label = ””);<br />

creates a graph window for a new empty graph with a display window<br />

of size w pixels × h pixels, and frame label win label.<br />

GraphWin gw(const char ∗ win label = ””);<br />

GraphWin gw(window& W );<br />

GraphWin gw(graph& G, window& W );<br />

creates a graph window for a new empty graph with a display window<br />

of default size and frame label win label.<br />

as above, but W is used as display window.<br />

as above, but makes G the graph of gw.<br />

3. Operations<br />

a) Window Operations

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!