1
<?xml version="1.0" encoding="UTF-8"?>
3
<class>RandScaleFreeDialog</class>
4
<widget class="QDialog" name="RandScaleFreeDialog">
5
<property name="geometry">
13
<property name="sizePolicy">
14
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
15
<horstretch>0</horstretch>
16
<verstretch>0</verstretch>
19
<property name="minimumSize">
25
<property name="maximumSize">
31
<property name="font">
33
<family>DejaVu Sans</family>
36
<property name="windowTitle">
37
<string>Scale-free random network generator</string>
39
<layout class="QGridLayout" name="gridLayout">
40
<item row="0" column="0">
41
<widget class="QLabel" name="label_2">
42
<property name="sizePolicy">
43
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
44
<horstretch>0</horstretch>
45
<verstretch>0</verstretch>
48
<property name="minimumSize">
54
<property name="font">
56
<pointsize>11</pointsize>
58
<italic>false</italic>
60
<underline>false</underline>
63
<property name="frameShape">
64
<enum>QFrame::NoFrame</enum>
66
<property name="frameShadow">
67
<enum>QFrame::Sunken</enum>
69
<property name="text">
70
<string>Generate random scale-free network according the Barabási–Albert (BA) model using a preferential attachment mechanism.</string>
72
<property name="textFormat">
73
<enum>Qt::RichText</enum>
75
<property name="wordWrap">
80
<item row="1" column="0">
81
<layout class="QHBoxLayout" name="horizontalLayout_2">
83
<widget class="QLabel" name="nodesLabel">
84
<property name="sizePolicy">
85
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
86
<horstretch>0</horstretch>
87
<verstretch>0</verstretch>
90
<property name="minimumSize">
96
<property name="font">
98
<pointsize>11</pointsize>
101
<property name="text">
102
<string>Nodes</string>
107
<widget class="QSpinBox" name="nodesSpinBox">
108
<property name="sizePolicy">
109
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
110
<horstretch>0</horstretch>
111
<verstretch>0</verstretch>
114
<property name="minimumSize">
120
<property name="font">
122
<pointsize>11</pointsize>
125
<property name="toolTip">
126
<string><html><head/><body><p>The resulting graph will have N nodes and N*d/2 edges</p></body></html></string>
128
<property name="minimum">
131
<property name="maximum">
132
<number>9999</number>
134
<property name="value">
141
<item row="2" column="0">
142
<layout class="QHBoxLayout" name="horizontalLayout_6">
143
<property name="sizeConstraint">
144
<enum>QLayout::SetMinimumSize</enum>
147
<widget class="QLabel" name="label_4">
148
<property name="sizePolicy">
149
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
150
<horstretch>0</horstretch>
151
<verstretch>0</verstretch>
154
<property name="minimumSize">
160
<property name="font">
162
<pointsize>11</pointsize>
165
<property name="text">
166
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
167
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
168
p, li { white-space: pre-wrap; }
169
</style></head><body style=" font-family:'DejaVu Sans'; font-size:11pt; font-weight:400; font-style:normal;">
170
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Initial connected nodes <span style=" font-style:italic;">m</span><span style=" font-style:italic; vertical-align:sub;">0</span></p></body></html></string>
175
<widget class="QSpinBox" name="initialNodesSpinBox">
176
<property name="minimumSize">
182
<property name="font">
184
<pointsize>11</pointsize>
187
<property name="toolTip">
188
<string><html><head/><body><p>This is the mean edge degree each new node will have</p></body></html></string>
190
<property name="minimum">
193
<property name="maximum">
194
<number>9999</number>
196
<property name="singleStep">
199
<property name="value">
206
<item row="3" column="0">
207
<layout class="QHBoxLayout" name="horizontalLayout">
209
<widget class="QLabel" name="probLabel">
210
<property name="sizePolicy">
211
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
212
<horstretch>0</horstretch>
213
<verstretch>0</verstretch>
216
<property name="minimumSize">
222
<property name="font">
224
<pointsize>11</pointsize>
227
<property name="text">
228
<string><html><head/><body><p>New nodes will connect to node <span style=" font-style:italic;">i</span> (degree <span style=" font-style:italic;">d</span><span style=" font-style:italic; vertical-align:sub;">i</span>) with prob: <span style=" font-style:italic;">p</span><span style=" font-style:italic; vertical-align:sub;">i</span><span style=" font-style:italic;"> = d</span><span style=" font-style:italic; vertical-align:sub;">i </span><span style=" font-style:italic;">/ Σ</span><span style=" font-style:italic; vertical-align:sub;">j</span><span style=" font-style:italic;"> d</span><span style=" font-style:italic; vertical-align:sub;">j</span></p></body></html></string>
234
<item row="4" column="0">
235
<layout class="QHBoxLayout" name="horizontalLayout_3">
237
<widget class="QLabel" name="label">
238
<property name="sizePolicy">
239
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
240
<horstretch>0</horstretch>
241
<verstretch>0</verstretch>
244
<property name="minimumSize">
250
<property name="font">
252
<pointsize>11</pointsize>
257
<property name="text">
258
<string>Graph Mode</string>
263
<layout class="QVBoxLayout" name="verticalLayout">
265
<widget class="QRadioButton" name="undirectedRadioButton">
266
<property name="sizePolicy">
267
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
268
<horstretch>0</horstretch>
269
<verstretch>0</verstretch>
272
<property name="minimumSize">
278
<property name="font">
280
<pointsize>11</pointsize>
281
<italic>false</italic>
282
<underline>false</underline>
283
<strikeout>false</strikeout>
286
<property name="text">
287
<string>Undirected</string>
289
<property name="checked">
292
<property name="autoExclusive">
298
<widget class="QRadioButton" name="directedRadioButton">
299
<property name="sizePolicy">
300
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
301
<horstretch>0</horstretch>
302
<verstretch>0</verstretch>
305
<property name="minimumSize">
311
<property name="font">
313
<pointsize>11</pointsize>
316
<property name="text">
317
<string>Directed</string>
319
<property name="autoExclusive">
328
<item row="5" column="0">
329
<layout class="QHBoxLayout" name="horizontalLayout_4">
331
<widget class="QLabel" name="label_3">
332
<property name="sizePolicy">
333
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
334
<horstretch>0</horstretch>
335
<verstretch>0</verstretch>
338
<property name="minimumSize">
344
<property name="font">
346
<pointsize>11</pointsize>
349
<property name="text">
350
<string>Allow diagonals (loops) or set to zero?</string>
355
<layout class="QVBoxLayout" name="verticalLayout_2">
357
<widget class="QCheckBox" name="diagCheckBox">
358
<property name="sizePolicy">
359
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
360
<horstretch>0</horstretch>
361
<verstretch>0</verstretch>
364
<property name="minimumSize">
370
<property name="font">
372
<pointsize>11</pointsize>
375
<property name="toolTip">
376
<string>Check to allow loops (nodes linking to themselves) in the new network</string>
378
<property name="text">
379
<string>No loops</string>
381
<property name="checked">
390
<item row="6" column="0">
391
<widget class="QDialogButtonBox" name="buttonBox">
392
<property name="font">
394
<pointsize>11</pointsize>
397
<property name="orientation">
398
<enum>Qt::Horizontal</enum>
400
<property name="standardButtons">
401
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
410
<sender>buttonBox</sender>
411
<signal>accepted()</signal>
412
<receiver>RandScaleFreeDialog</receiver>
413
<slot>accept()</slot>
415
<hint type="sourcelabel">
419
<hint type="destinationlabel">
426
<sender>buttonBox</sender>
427
<signal>rejected()</signal>
428
<receiver>RandScaleFreeDialog</receiver>
429
<slot>reject()</slot>
431
<hint type="sourcelabel">
435
<hint type="destinationlabel">