-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial_basic.html
More file actions
211 lines (201 loc) · 7.37 KB
/
Copy pathtutorial_basic.html
File metadata and controls
211 lines (201 loc) · 7.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
The Internet Topology Zoo
</title>
<link rel="stylesheet" href="blue/style.css" type="text/css" id="" media="print, projection, screen" />
<link href="prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify/prettify.js">
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-351760-4']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body onload="prettyPrint()">
<div id="wrap">
<div id="header">
<table class="header">
<tr>
<td>
<img src="UoA_col_horz.png" />
</td>
<td>
<h1>
The Internet Topology Zoo
</h1>
</td>
</tr>
</table>
</div>
<div id="main">
<div id="sidebar">
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="dataset.html">Dataset</a>
</li>
<li>
<a href="gallery.html">Gallery</a>
</li>
<li>
<a href="publications.html">Publications</a>
</li>
<li>
<a href="toolset.html">Toolset</a>
</li>
<li>
<a href="documentation.html">Documentation</a>
</li>
<li>
<a href="contribute.html">Contribute</a>
</li>
<li>
<a href="links.html">External Links</a>
</li>
<li>
<a href="contact.html">Contact</a>
</li>
</ul>
</div>
<div id="main-content">
<h2> Basic Tutorial</h2>
<ol>
<li>Download and open the <a href="http://www.yworks.com/products/yed/">yEd</a> graph drawing program.</li>
<li><p>Nodes are added to the graph by clicking the mouse on the background.
<br><img id="alttext" src="images/1twonodes.png" alt="Alt text" title="" /></p></li>
<li><p>The nodes can be named by selecting a node, pressing enter, and then typing in a name. Press enter again to store the name.<br>
<img id="alttext" src="images/3nodesnames.png" alt="Alt text" title="" /></p></li>
<li><p> Edges can be added between two nodes by clicking the first node, holding down the mouse button, and releasing on the second node. This will draw a line between the nodes. (Do not worry about the arrows on the link, as the converter script will automatically make links bidirectional).
<img id="alttext" src="images/2twonodesedge.png" alt="Alt text" title="" /></p></li>
<li><p>Labels can also be added to edges in a similar manner to nodes. Select the edge, press enter, type in the label, and then press enter to store the label.
<img id="alttext" src="images/4edgesnamed.png" alt="Alt text" title="" /></p></li>
<li><p>Save the network in GML format, by
File -> Save As, and selecting a File Format of GML Format (*.gml)</p></li>
<li><p>The saved GML format network contains yEd graphics metadata, as can be seen below:</p></li>
</ol>
<pre class="prettyprint">
Creator “yFiles”
Version “2.8”
graph
[
hierarchic 1
label “”
directed 1
node
[
id 0
label “Perth”
graphics
[
x 400.0
y 354.0
w 30.0
h 30.0
type “rectangle”
fill “#FFCC00”
outline “#000000”
]
LabelGraphics
[
text “Perth”
fontSize 13
fontName “Dialog”
anchor “c”
borderDistance 0.0
]
]
node
[
id 1
label “Adelaide”
graphics
[
x 533.0
y 358.0
w 30.0
h 30.0
type “rectangle”
fill “#FFCC00”
outline “#000000”
]
LabelGraphics
[
text “Adelaide”
fontSize 13
fontName “Dialog”
anchor “c”
borderDistance 0.0
]
]
edge
[
source 0
target 1
label “2.5Gbps”
graphics
[
fill “#000000”
targetArrow “standard”
]
LabelGraphics
[
text “2.5Gbps”
fontSize 12
fontName “Dialog”
model “six_pos”
position “tail”
]
]
]
</pre>
</p>
<p>We can use the convert.py script from the <a href="toolset.html">toolset</a> to produce a GML graph suitable for inclusion in the Zoo. The <em>-f</em> command line option tells the script where to find the source GML file.
<pre class="prettyprint">./merge.py -f ~/czoo/examples/tutorial/basic.gml</pre></p>
<p>This will automatically create a new subdirectory called “merged”, and output the merged files into this directory.
We now get clean GML
<pre class="prettyprint">
graph [
Version “1.0”
Creator “Topology Zoo Toolset”
label “basic”
node [
id 0
label “Perth”
]
node [
id 1
label “Adelaide”
]
edge [
source 0
target 1
LinkSpeed “2.5”
LinkSpeedUnits “G”
LinkLabel “2.5Gbps”
]
]
</pre>
</p>
<p>This example shows some other features of the convert script. <br>
The network label has been set to the name of the file it was read from, nodes have their label set based on the yEd label, link speed has been extracted from the edge label, and the edge has also been made bidirectional.</p>
</div>
</div>
</div>
<div id="footer">
This project was supported by the Australian Government through an Australian Postgraduate Award and Australian Research Council Discovery Grants DP110103505 and DP0985063; and by the <a href="http://www.adelaide.edu.au">University of Adelaide</a>.
<br>
Last updated 2010-12-15 by simon.knight at adelaide.edu.au </a>.
</div>
</body>
</html>