data structure representing the graphic properties used for edges graphical display
A data structure represented by a Scilab mlist
with type egraphic
and 8 fields:
display
a string. Gives the information that
is displayed with the edge. The possible values are
'nothing'
, 'number'
,
'name'
or any edge data field name as given by
the edgedatafields
function. Of course if
display
is set to 'nothing'
no
information is displayed.
defaults
A Scilab tlist data structure of
type edgedefs
. Contains the default values for
'width'
, 'foreground'
,
'font'
, 'profile_index'
properties.
profiles
A Scilab list
which stores the different edge profiles used for drawing the egdes.
name
A row vector of strings. The name
associated with each edge.
width
a row vector. The thickness of the
polyline used to draw each edge. A zero value stands for the
default value.
foreground
a row vector. The color index
(relative to current colormap) of the polyline used to draw
each edge. A zero value stands for the default value.
font
a matrix with 3 rows:
font(1,i)
is the font size,
font(2,i)
is the font
style,font(2,i)
is the font color used to draw
information on the i th edge..A zero value of either entry
stands for the corresponding default value.
profile_index
a row vector. The index
relative to the profiles
list of the profile to
use to draw the edge polyline.
//create a simple graph ta=[1 1 2 7 8 9 10 10 10 10 11 12 13 13 4]; he=[2 10 7 8 9 7 7 11 13 13 12 13 9 10 4]; g=make_graph('simple',1,13,ta,he); g.nodes.graphics.x=[40,33,29,63,146,233,75,42,114,156,237,260,159]; g.nodes.graphics.y=[7,61,103,142,145,143,43,120,145,18,36,107,107]; show_graph(g,'new') g.edges.graphics.defaults.width=2; g.edges.graphics.defaults.foreground=color('red'); show_graph(g) g.edges.graphics.width(1:5)=1; g.edges.graphics.foreground([10 12])=color('blue'); show_graph(g) g.edges.graphics.display='number'; show_graph(g) g.edges.graphics | ![]() | ![]() |