09.02.2015 Views

Sage Reference Manual: Graph Theory - Mirrors

Sage Reference Manual: Graph Theory - Mirrors

Sage Reference Manual: Graph Theory - Mirrors

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Sage</strong> <strong>Reference</strong> <strong>Manual</strong>: <strong>Graph</strong> <strong>Theory</strong>, Release 6.1.1<br />

•vertex_shape – default: ‘circle’ – a string for the shape of the vertices. Allowable values are<br />

‘circle’, ‘sphere’, ‘rectangle’, ‘diamond’. The sphere shape has a 3D look to its coloring and is uses<br />

only one color, that specified by vertex_color and vertex_colors, which are normally used<br />

for the outline of the vertex.<br />

•vertex_shapes – a dictionary whose keys are vertices of the graph and whose values are shapes.<br />

See vertex_shape for the allowable possibilities.<br />

•vertex_size– default: 1.0 – the minimum size of a vertex as a number. Vertices will expand to<br />

contain their labels if the labels are placed inside the vertices. If you set this value to zero the vertex<br />

will be as small as possible (up to tkz-graph’s “inner sep” parameter), while still containing labels.<br />

However, if labels are not of a uniform size, then the verrices will not be either.<br />

•vertex_sizes – a dictionary of sizes for some of the vertices.<br />

•vertex_labels – default: True – a boolean to determine whether or not to display the vertex<br />

labels. If False subsequent options about vertex labels are ignored.<br />

•vertex_labels_math – default: True – when true, if a label is a string that begins and ends with<br />

dollar signs, then the string will be rendered as a latex string. Otherwise, the label will be automatically<br />

subjected to the latex() method and rendered accordingly. If False the label is rendered<br />

as its textual representation according to the _repr method. Support for arbitrarily-complicated<br />

mathematics is not especially robust.<br />

•vertex_label_color – default: ‘black’ – a single color to use as the default for labels of vertices.<br />

See the explanation above for the vertex_color option to see possible values.<br />

•vertex_label_colors – a dictionary whose keys are vertices of the graph and whose values<br />

are colors. These will be used for the text of the labels of vertices. See the explanation above for<br />

the vertex_color option to see possible values. These values need only be specified for a proper<br />

subset of the vertices. Specified values will supersede a default value.<br />

•vertex_label_placement – default: ‘center’ – if ‘center’ the label is centered in the interior<br />

of the vertex and the vertex will expand to contain the label. Giving instead a pair of numbers will<br />

place the label exterior to the vertex at a certain distance from the edge, and at an angle to the positive<br />

x-axis, similar in spirt to polar coordinates.<br />

•vertex_label_placements – a dictionary of placements indexed by the vertices. See the explanation<br />

for vertex_label_placement for the possible values.<br />

•edge_color – default: ‘black’ – a single color to use as the default for an edge. See the explanation<br />

above for the vertex_color option to see possible values.<br />

•edge_colors – a dictionary whose keys are edges of the graph and whose values are colors. These<br />

will be used to color the edges.See the explanation above for the vertex_color option to see<br />

possible values. These values need only be specified for a proper subset of the vertices. Specified<br />

values will supersede a default value.<br />

•edge_fills – default: False – a boolean that determines if an edge has a second color running<br />

down the middle. This can be a useful effect for highlighting edge crossings.<br />

•edge_fill_color – default: ‘black’ – a single color to use as the default for the fill color of an<br />

edge. The boolean switch edge_fills must be set to True for theis to have an effect. See the<br />

explanation above for the vertex_color option to see possible values.<br />

•edge__fill_colors – a dictionary whose keys are edges of the graph and whose values are<br />

colors. See the explanation above for the vertex_color option to see possible values. These<br />

values need only be specified for a proper subset of the vertices. Specified values will supersede a<br />

default value.<br />

5.19. LaTeX options for graphs 577

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

Saved successfully!

Ooh no, something went wrong!