| 1 |
\section{\smyrna\ Attributes} |
| 2 |
\label{sec:attribs} |
| 3 |
|
| 4 |
This section describes the various attributes used to control |
| 5 |
how \smyrna\ works. Unless otherwise noted, |
| 6 |
all attributes belong to the root graph. |
| 7 |
|
| 8 |
The following table lists the principal |
| 9 |
attributes used by \smyrna.\\ |
| 10 |
\begin{center} |
| 11 |
{\footnotesize |
| 12 |
\begin{tabular}[t]{|l|p{2.5in}|l|} \hline |
| 13 |
{\bf Name} & {\bf Description} & {\bf Default} \\ \hline |
| 14 |
bgcolor & Background color & white (\#ffffff) \\ |
| 15 |
bordercolor & Border color & \#38eb29 \\ |
| 16 |
bordervisible & Draw graph border (boolean) & 1 \\ |
| 17 |
gridcolor & Grid color & \#6033d8 \\ |
| 18 |
gridsize & Grid size & 30 \\ |
| 19 |
gridvisible & Draw grid (boolean) & 0 \\ |
| 20 |
defaultlinewidth & Default line width & 1 \\ |
| 21 |
selectednodecolor & Color of selected nodes & \#8ce61d \\ |
| 22 |
selectededgecolor & Color of selected edges & \#ffc0cb \\ |
| 23 |
usermode & Advanced mode (boolean) & 1 \\ |
| 24 |
drawnodes & Draw nodes (boolean) & 1 \\ |
| 25 |
drawedges & Draw edges (boolean) & 1 \\ |
| 26 |
drawlabels & Show node labels (boolean) & 1 \\ |
| 27 |
defaultnodealpha & Overall alpha scale for all nodes. This |
| 28 |
value is multiplied by a node's alpha value. & 0.8 \\ |
| 29 |
defaultedgealpha & Overall alpha scale for all edges & 0.5 \\ |
| 30 |
defaultnodeshape & OpenGL dots (0); spheres (1); custom (2) & 0 \\ |
| 31 |
labelglutfont & Glut font id to use to render labels & 0 \\ |
| 32 |
nodelabelcolor & node label color & \#8ce61d \\ |
| 33 |
edgelabelcolor & edge label color & \#8ce61d \\ |
| 34 |
nodelabelattribute & Node attribute used as node label & name \\ |
| 35 |
edgelabelattribute & Edge attribute used as edge label & name \\ |
| 36 |
labelwithdegree & Labels of high-degree nodes with |
| 37 |
rendered before the ones with lower degree (boolean) & 0 \\ |
| 38 |
labelnumberofnodes & Maximum number of node labels to be |
| 39 |
rendered & 45 \\ |
| 40 |
shownodelabels & Show node labels (boolean) & 1 \\ |
| 41 |
showedgelabels & Show edge labels (boolean) & 1 \\ |
| 42 |
colortheme & Color theme id for edges with no |
| 43 |
color attribute. If unset, color is based on edge length; if |
| 44 |
set, edgecolorattribute is used & 1 \\ |
| 45 |
defaultnodecolor & Default node color & blue \\ |
| 46 |
defaultedgecolor & Color of edges with no color attribute. Active only when |
| 47 |
colortheme attribute is set to "-1" & purple \\ |
| 48 |
edgecolorattribute & Set this attribute when you need a |
| 49 |
different value other than edge length to calculate color themes for edges & \\ |
| 50 |
nodesize & Overall node size scale & 50 \\ |
| 51 |
nodesselectable & Enable visual selection tools for nodes & 1 \\ |
| 52 |
edgesselectable & Enable visual selection tools for edges & 1 \\ \hline |
| 53 |
\end{tabular} |
| 54 |
} |
| 55 |
\end{center} |
| 56 |
Most of these attributes are self-explanatory. |
| 57 |
|
| 58 |
\subsection{usermode} |
| 59 |
What does this attribute do? |
| 60 |
|
| 61 |
\subsection{fonts} |
| 62 |
Explain font ids |
| 63 |
|
| 64 |
\subsection{colors} |
| 65 |
Explain color theme ids, default node and edge colors |
| 66 |
and edgecolorattribute |
| 67 |
|
| 68 |
\subsection{labels} |
| 69 |
name as pseudo-attribute \\ |
| 70 |
labelwithdegree labelnumberofnodes |
| 71 |
|
| 72 |
\subsection{alpha values} |
| 73 |
Explain defaultedgealpha defaultnodealpha |
| 74 |
|
| 75 |
\subsection{Node shapes} |
| 76 |
The node shape attribute determines the look, flexibility and performance associated |
| 77 |
with how nodes are displayed. If {\tt defaultnodeshape} is set to 0, \smyrna\ uses |
| 78 |
OpenGL dots. This gives the best performance, but does not allow variations in size. |
| 79 |
A value of 1 causes \smyrna\ to use spherical node shapes. For large graphs, this will |
| 80 |
cause some slowdown when panning and zooming. On the other hand, one can set the |
| 81 |
size of each node individually via a node's {\tt size} attribute. |
| 82 |
Finally, if 2 is used, \smyrna\ will draw nothing. |
| 83 |
|
| 84 |
\newpage |
| 85 |
This table lists the attributes used by \smyrna |
| 86 |
in the topological fisheye mode.\\ |
| 87 |
{\footnotesize |
| 88 |
\begin{tabular}[t]{|l|p{3.0in}|l|} \hline |
| 89 |
{\bf Name} & {\bf Description} & {\bf Default} \\ \hline |
| 90 |
topologicalfisheyefinenodes & Number of the fine nodes in topological fisheye view & 50 \\ |
| 91 |
topologicalfisheyecoarseningfactor & Coarsening factor of topological fisheye & 2.5 \\ |
| 92 |
topologicalfisheyedistortionfactor & Distortion Factor & 1 \\ |
| 93 |
topologicalfisheyeanimate & Animate transitions (boolean) & 1 \\ |
| 94 |
topologicalfisheyelabelfinenodes & Show fine node labels & 1 \\ |
| 95 |
topologicalfisheyecolornodes & Color nodes (boolean) & 1 \\ |
| 96 |
topologicalfisheyelabelfocus & Show focus node labels (boolean) & 1 \\ |
| 97 |
topologicalfisheyefinestcolor & Color of fine nodes & red \\ |
| 98 |
topologicalfisheyecoarsestcolor & Color of coarse nodes & green \\ \hline |
| 99 |
\end{tabular} |
| 100 |
} |
| 101 |
|
| 102 |
The following attributes affect the magnifying glass widget.\\ |
| 103 |
{\footnotesize |
| 104 |
\begin{tabular}[t]{|l|p{3.0in}|l|} \hline |
| 105 |
{\bf Name} & {\bf Description} & {\bf Default} \\ \hline |
| 106 |
defaultfisheyemagnifierradius & Radius of magnifier glass & 350 \\ |
| 107 |
defaultfisheyemagnifierdistort & Distortion value of magnifying glass & 5 \\ \hline |
| 108 |
\end{tabular} |
| 109 |
} |
| 110 |
|
| 111 |
The larger the distortion, the larger the magnification factor. |
| 112 |
|
| 113 |
\subsection{Node and Edge Attributes} |
| 114 |
At present, it is assumed that the input graph has been laid out. In particular, |
| 115 |
each node should have a {\tt pos} attribute specifying 2 or 3 real numbers giving the |
| 116 |
x and y and, if applicable, z coordinates of the node. |
| 117 |
|
| 118 |
{\bf edge pos} |
| 119 |
If an edge does not possess a {\tt pos} attribute, the edge will be drawn as a line segment |
| 120 |
connect its end vertices. |
| 121 |
|
| 122 |
If a node or edge has a {\tt color} attribute, that will be used as its color. |
| 123 |
Similarly, a node may have a {\tt size} attribute, which will affect the node's size if |
| 124 |
{\tt defaultnodeshape == 1}. |
| 125 |
|
| 126 |
If a node or edge has a {\tt visible} attribute, that will be used to determine whether |
| 127 |
to draw the object or not. By default, the object is drawn. |
| 128 |
To make an object invisible, set {\tt visible = 0}. |
| 129 |
|
| 130 |
\smyrna\ also checks for a {\tt \_draw\_} attribute |
| 131 |
for nodes, edges and graphs. This is assumed to be a valid xdot string describing how to |
| 132 |
render the object. If the graph has a {\tt \_draw\_} attribute, this will be drawn first to serve |
| 133 |
as a background for the node and edges of the graph. |
| 134 |
|
| 135 |
|