File: Graph.html

package info (click to toggle)
tcm 2.20%2BTSQD-5
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 20,168 kB
  • ctags: 17,471
  • sloc: ansic: 78,531; sh: 3,675; makefile: 1,346; perl: 753; yacc: 558; lex: 260
file content (603 lines) | stat: -rwxr-xr-x 42,404 bytes parent folder | download | duplicates (9)
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
<html><head><TITLE>Graph</TITLE></head>
<body>
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A>  class  Graph  </H2><BLOCKQUOTE>
 (abstract) graph class.
</BLOCKQUOTE>
<hr>
 <h2> Inheritance:</h2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=335>
<param name=classes value="CGraph,MGraph.html,CTRGraph,MTRGraph.html,CSTGraph,MSTGraph.html,CSNGraph,MSNGraph.html,CRPGraph,MRPGraph.html,CPSGraph,MPSGraph.html,CGDGraph,MGDGraph.html,CERGraph,MERGraph.html,CDFGraph,MDFGraph.html,CCPGraph,MCPGraph.html,CATGraph,MATGraph.html">
<param name=before value="M,M|_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,MR_,Mr_">
<param name=after value="M,M,M,M,M,M,M,M,M,M,M">
<param name=indent value="0,0,0,0,0,0,0,0,0,0,0">
<param name=arrowdir value="down">
</APPLET>
<hr>

<DL>
<TABLE>
<DT><h3>Public Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.194.1"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>Graph</B> ()<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.2"> <IMG BORDER=0 SRC=icon1.gif></A> virtual </TD><TD><B>~Graph</B> ()<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.3"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>AddNode</B> (<!1><A HREF="Node.html">Node</A> *node)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.4"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>AddEdge</B> (<!1><A HREF="Edge.html">Edge</A> *edge)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.5"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>RemoveNode</B> (<!1><A HREF="Node.html">Node</A> *node)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.6"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>RemoveEdge</B> (<!1><A HREF="Edge.html">Edge</A> *edge)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.7"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasNode</B> (<!1><A HREF="Node.html">Node</A> *node)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.8"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasEdge</B> (<!1><A HREF="Edge.html">Edge</A> *edge)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.9"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>ClearNodes</B> ()<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.10"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>ClearEdges</B> ()<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.11"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>CheckConnection</B> (int stype1, int stype2, int edgetype)<br>
<I> checks if edge type may connect subject types 1 and 2.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.12"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsConnected</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)<br>
<I> checks if there is an edge in the graph that connects s1 and s2.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.13"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsConnected</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, const <!1><A HREF="string.html">string</A> *n)<br>
<I> same as above, but edge should also have name n.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.14"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsConnected</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, int t)<br>
<I> here edge should also be of type t.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.15"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsConnected</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> combination of the two members above.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.16"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CompleteSubjects</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)<br>
<I> add to l all edges which connect the subjects.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.17"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CompleteSubject</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s)<br>
<I> add to l all edges of which subject s is part.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.18"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CompleteSubject</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)<br>
<I> add to l all edges which connect subjects s1 and s2.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.19"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CompleteEdges</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)<br>
<I> add to l all subjects which are connected by edges already in l.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.20"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetConnected</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s)<br>
<I> add to l the subjects that are directly connected to subject s.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.21"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetNodes</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)<br>
<I> add to l all nodes in the graph.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.22"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetNodes</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, int t)<br>
<I> add to l all nodes of type t in the graph.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.23"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetNodes</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, const <!1><A HREF="string.html">string</A> *n)<br>
<I> add to l all nodes having name n in the graph.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.24"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetNodes</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> combination of two above members.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.25"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdges</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)<br>
<I> add to l all edges in the graph.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.26"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdges</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, int t)<br>
<I> add to l all edges of type t in the graph.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.27"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdges</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, const <!1><A HREF="string.html">string</A> *n)<br>
<I> add to l all edges having name n in the graph.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.28"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdges</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> combination of two above members.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.29"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdgesFrom</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s)<br>
<I> add to l all edges departing from subject s in the graph.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.30"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdgesFrom</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, int t)<br>
<I> add to l all edges of type t departing from subject s.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.31"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdgesFrom</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n)<br>
<I> add to l all edges having name n departing from subject s.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.32"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdgesFrom</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> combination of two above members.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.33"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdgesTo</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s)<br>
<I> add to l all edges going to subject s.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.34"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdgesTo</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, int t)<br>
<I> add to l all edges of type t going to subject s.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.35"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdgesTo</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n)<br>
<I> add to l all edges having name n going to subject s.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.36"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdgesTo</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> combination of the two above members.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.37"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdges</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *from, <!1><A HREF="Subject.html">Subject</A> *to)<br>
<I> add to l all edges between subjects from and to</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.38"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdges</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *from, <!1><A HREF="Subject.html">Subject</A> *to, int t)<br>
<I> add to l all edges of type t between subjects from and to</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.39"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdges</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *from, <!1><A HREF="Subject.html">Subject</A> *to, const <!1><A HREF="string.html">string</A> *n)<br>
<I> combination of the two above members.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.40"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetEdges</B> (<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *from, <!1><A HREF="Subject.html">Subject</A> *to, const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> combination of two above members.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.41"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountNodes</B> ()<br>
<I> return number of nodes in the graph</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.42"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountNodes</B> (int t)<br>
<I> return number of nodes of type t in the graph</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.43"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountNodes</B> (const <!1><A HREF="string.html">string</A> *n)<br>
<I> return number of nodes having name n in the graph</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.44"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountNodes</B> (const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> return nr. of nodes of type t, having name n in the graph</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.45"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdges</B> ()<br>
<I> return number of edges in the graph</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.46"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdges</B> (int t)<br>
<I> return number of edges of type t in the graph</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.47"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdges</B> (const <!1><A HREF="string.html">string</A> *n)<br>
<I> return number of edges having name n in the graph</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.48"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdges</B> (const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> return nr. of edges of type t, having name n in the graph</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.49"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdgesFrom</B> (<!1><A HREF="Subject.html">Subject</A> *s)<br>
<I> return nr. of edges departing from subject s</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.50"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdgesFrom</B> (<!1><A HREF="Subject.html">Subject</A> *s, int t)<br>
<I> return nr. of edges of type t departing from subject s</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.51"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdgesFrom</B> (<!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n)<br>
<I> return number of edges having name n departing from subject s</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.52"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdgesFrom</B> (<!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> return number of edges of type t, having name n, departing from subject s</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.53"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdgesTo</B> (<!1><A HREF="Subject.html">Subject</A> *s)<br>
<I> return nr. of edges going to subject s</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.54"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdgesTo</B> (<!1><A HREF="Subject.html">Subject</A> *s, int t)<br>
<I> return nr. of edges of type t going to subject s</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.55"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdgesTo</B> (<!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n)<br>
<I> return number of edges having name n going to subject s</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.56"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdgesTo</B> (<!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> return number of edges of type t, having name n going to subject s</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.57"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdges</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)<br>
<I> return number of edges between subjects s1 and s2</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.58"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdges</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, int t)<br>
<I> return number of edges of type t between subjects s1 and s2</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.59"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdges</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, const <!1><A HREF="string.html">string</A> *n)<br>
<I> return number of edges having name n between subjects s1 and s2</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.60"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountEdges</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, const <!1><A HREF="string.html">string</A> *n, int t)<br>
<I> return number of edges of type t, having name n between subjects s1 and s2</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.61"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>PathExists</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)<br>
<I> returns if there is some connected path of graph edges from s1 to s2.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.62"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>PathExists</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, int t)<br>
<I> returns if there is some conn. path of graph edges of type t from s1 to s2.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.63"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>UndirectedPathExists</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)<br>
<I> return if there's path from s1 to s2. irregardless edge direction.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.64"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>WriteSubjects</B> (<!1><A HREF="OutputFile.html">OutputFile</A> *f)<br>
<I> Writes all nodes and edges to outputfile f.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.65"> <IMG BORDER=0 SRC=icon1.gif></A> virtual  void </TD><TD><B>InitConnections</B> ()<br>
<I> initializes the table containing all allowed connections.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.66"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetCounter</B> (int n)<br>
<I> some counter can be used</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.67"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetCounter</B> ()<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.68"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetIndexPrefix</B> (const char *s)<br>
<I> some string can be used as index prefix.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.69"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetIndexPrefix</B> (const <!1><A HREF="string.html">string</A> *s)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.70"> <IMG BORDER=0 SRC=icon1.gif></A> const  <!1><A HREF="string.html">string</A>* </TD><TD><B>GetIndexPrefix</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.71"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>GetIndex</B> (<!1><A HREF="string.html">string</A> *s)<br>
<I> index string := prefix + counter.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.72"> <IMG BORDER=0 SRC=icon1.gif></A> virtual  void </TD><TD><B>GetNextIndex</B> (<!1><A HREF="string.html">string</A> *index)<br>
<I> assign to index a new unique index</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.73"> <IMG BORDER=0 SRC=icon1.gif></A> virtual  int </TD><TD><B>CountIndexes</B> (const <!1><A HREF="string.html">string</A> *index)<br>
<I> return number of nodes in the graph having this index.</I>
</TD></TR></TABLE><TABLE>
<DT><h3>Protected Classes</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.194.76"> <IMG BORDER=0 SRC=icon1.gif></A>  enum</TD><TD><B></B> <br>
<I> Max. number of different connected types and edge types.</I>
</TD></TR></TABLE><TABLE>
<DT><h3>Protected Fields</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.194.74"> <IMG BORDER=0 SRC=icon1.gif></A> int* </TD><TD><B>nodeTypes</B> <br>
<I> Allowed 'connected' types in graph (depends on type of editor).</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.75"> <IMG BORDER=0 SRC=icon1.gif></A> int* </TD><TD><B>edgeTypes</B> <br>
<I> Allowed edges type in graph (depends on type of editor).</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.77"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>connections</B> [MAX_TYPES][MAX_TYPES][MAX_TYPES]<br>
<I> matrix to store what types can be connected by what edge types.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.78"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="List.html">List</A> <<!1><A HREF="Node.html">Node</A> *> * </TD><TD><B>nodes</B> <br>
<I> the graph nodes.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.79"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="List.html">List</A> <<!1><A HREF="Edge.html">Edge</A> *> * </TD><TD><B>edges</B> <br>
<I> the graph edges.</I>
</TD></TR></TABLE><TABLE>
<DT><h3>Protected Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.194.80"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>PathExists</B> (<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, int edgetype, bool Directed)<br>
<I> used by other PathExists.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.194.81"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>CountIndex</B> (const <!1><A HREF="string.html">string</A> *index, <!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)<br>
<I> return number of nodes in l having this index </I>
</TD></TR></TABLE></DL>
<A NAME="DOC.DOCU">
<hr>
 <h2> Documentation </h2>
<BLOCKQUOTE>
 (abstract) graph class.

</BLOCKQUOTE>
<DL>

<A NAME="Graph">
<A NAME ="DOC.194.1">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B>  Graph()</B></TT>
<DL></DL><P>
<A NAME="~Graph">
<A NAME ="DOC.194.2">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  ~Graph()</B></TT>
<DL></DL><P>
<A NAME="AddNode">
<A NAME ="DOC.194.3">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  AddNode(<!1><A HREF="Node.html">Node</A> *node)</B></TT>
<DL></DL><P>
<A NAME="AddEdge">
<A NAME ="DOC.194.4">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  AddEdge(<!1><A HREF="Edge.html">Edge</A> *edge)</B></TT>
<DL></DL><P>
<A NAME="RemoveNode">
<A NAME ="DOC.194.5">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  RemoveNode(<!1><A HREF="Node.html">Node</A> *node)</B></TT>
<DL></DL><P>
<A NAME="RemoveEdge">
<A NAME ="DOC.194.6">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  RemoveEdge(<!1><A HREF="Edge.html">Edge</A> *edge)</B></TT>
<DL></DL><P>
<A NAME="HasNode">
<A NAME ="DOC.194.7">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  HasNode(<!1><A HREF="Node.html">Node</A> *node)</B></TT>
<DL></DL><P>
<A NAME="HasEdge">
<A NAME ="DOC.194.8">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  HasEdge(<!1><A HREF="Edge.html">Edge</A> *edge)</B></TT>
<DL></DL><P>
<A NAME="ClearNodes">
<A NAME ="DOC.194.9">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  ClearNodes()</B></TT>
<DL></DL><P>
<A NAME="ClearEdges">
<A NAME ="DOC.194.10">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  ClearEdges()</B></TT>
<DL></DL><P>
<A NAME="CheckConnection">
<A NAME ="DOC.194.11">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  CheckConnection(int stype1, int stype2, int edgetype)</B></TT>
<DD> checks if edge type may connect subject types 1 and 2.
<DL></DL><P>
<A NAME="IsConnected">
<A NAME ="DOC.194.12">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  IsConnected(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)</B></TT>
<DD> checks if there is an edge in the graph that connects s1 and s2.
<DL></DL><P>
<A NAME="IsConnected">
<A NAME ="DOC.194.13">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  IsConnected(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> same as above, but edge should also have name n.
<DL></DL><P>
<A NAME="IsConnected">
<A NAME ="DOC.194.14">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  IsConnected(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, int t)</B></TT>
<DD> here edge should also be of type t.
<DL></DL><P>
<A NAME="IsConnected">
<A NAME ="DOC.194.15">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  IsConnected(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> combination of the two members above.
<DL></DL><P>
<A NAME="CompleteSubjects">
<A NAME ="DOC.194.16">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CompleteSubjects(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)</B></TT>
<DD> add to l all edges which connect the subjects.
<DL></DL><P>
<A NAME="CompleteSubject">
<A NAME ="DOC.194.17">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CompleteSubject(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s)</B></TT>
<DD> add to l all edges of which subject s is part.
<DL></DL><P>
<A NAME="CompleteSubject">
<A NAME ="DOC.194.18">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CompleteSubject(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)</B></TT>
<DD> add to l all edges which connect subjects s1 and s2.
<DL></DL><P>
<A NAME="CompleteEdges">
<A NAME ="DOC.194.19">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CompleteEdges(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)</B></TT>
<DD> add to l all subjects which are connected by edges already in l.
<DL></DL><P>
<A NAME="GetConnected">
<A NAME ="DOC.194.20">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetConnected(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s)</B></TT>
<DD> add to l the subjects that are directly connected to subject s.
<DL></DL><P>
<A NAME="GetNodes">
<A NAME ="DOC.194.21">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetNodes(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)</B></TT>
<DD> add to l all nodes in the graph.
<DL></DL><P>
<A NAME="GetNodes">
<A NAME ="DOC.194.22">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetNodes(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, int t)</B></TT>
<DD> add to l all nodes of type t in the graph.
<DL></DL><P>
<A NAME="GetNodes">
<A NAME ="DOC.194.23">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetNodes(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> add to l all nodes having name n in the graph.
<DL></DL><P>
<A NAME="GetNodes">
<A NAME ="DOC.194.24">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetNodes(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> combination of two above members.
<DL></DL><P>
<A NAME="GetEdges">
<A NAME ="DOC.194.25">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdges(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)</B></TT>
<DD> add to l all edges in the graph.
<DL></DL><P>
<A NAME="GetEdges">
<A NAME ="DOC.194.26">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdges(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, int t)</B></TT>
<DD> add to l all edges of type t in the graph.
<DL></DL><P>
<A NAME="GetEdges">
<A NAME ="DOC.194.27">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdges(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> add to l all edges having name n in the graph.
<DL></DL><P>
<A NAME="GetEdges">
<A NAME ="DOC.194.28">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdges(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> combination of two above members.
<DL></DL><P>
<A NAME="GetEdgesFrom">
<A NAME ="DOC.194.29">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdgesFrom(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s)</B></TT>
<DD> add to l all edges departing from subject s in the graph.
<DL></DL><P>
<A NAME="GetEdgesFrom">
<A NAME ="DOC.194.30">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdgesFrom(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, int t)</B></TT>
<DD> add to l all edges of type t departing from subject s.
<DL></DL><P>
<A NAME="GetEdgesFrom">
<A NAME ="DOC.194.31">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdgesFrom(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> add to l all edges having name n departing from subject s.
<DL></DL><P>
<A NAME="GetEdgesFrom">
<A NAME ="DOC.194.32">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdgesFrom(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> combination of two above members.
<DL></DL><P>
<A NAME="GetEdgesTo">
<A NAME ="DOC.194.33">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdgesTo(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s)</B></TT>
<DD> add to l all edges going to subject s.
<DL></DL><P>
<A NAME="GetEdgesTo">
<A NAME ="DOC.194.34">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdgesTo(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, int t)</B></TT>
<DD> add to l all edges of type t going to subject s.
<DL></DL><P>
<A NAME="GetEdgesTo">
<A NAME ="DOC.194.35">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdgesTo(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> add to l all edges having name n going to subject s.
<DL></DL><P>
<A NAME="GetEdgesTo">
<A NAME ="DOC.194.36">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdgesTo(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> combination of the two above members.
<DL></DL><P>
<A NAME="GetEdges">
<A NAME ="DOC.194.37">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdges(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *from, <!1><A HREF="Subject.html">Subject</A> *to)</B></TT>
<DD> add to l all edges between subjects from and to
<DL></DL><P>
<A NAME="GetEdges">
<A NAME ="DOC.194.38">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdges(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *from, <!1><A HREF="Subject.html">Subject</A> *to, int t)</B></TT>
<DD> add to l all edges of type t between subjects from and to
<DL></DL><P>
<A NAME="GetEdges">
<A NAME ="DOC.194.39">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdges(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *from, <!1><A HREF="Subject.html">Subject</A> *to, const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> combination of the two above members.
<DL></DL><P>
<A NAME="GetEdges">
<A NAME ="DOC.194.40">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetEdges(<!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l, <!1><A HREF="Subject.html">Subject</A> *from, <!1><A HREF="Subject.html">Subject</A> *to, const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> combination of two above members.
<DL></DL><P>
<A NAME="CountNodes">
<A NAME ="DOC.194.41">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountNodes()</B></TT>
<DD> return number of nodes in the graph
<DL></DL><P>
<A NAME="CountNodes">
<A NAME ="DOC.194.42">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountNodes(int t)</B></TT>
<DD> return number of nodes of type t in the graph
<DL></DL><P>
<A NAME="CountNodes">
<A NAME ="DOC.194.43">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountNodes(const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> return number of nodes having name n in the graph
<DL></DL><P>
<A NAME="CountNodes">
<A NAME ="DOC.194.44">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountNodes(const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> return nr. of nodes of type t, having name n in the graph
<DL></DL><P>
<A NAME="CountEdges">
<A NAME ="DOC.194.45">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdges()</B></TT>
<DD> return number of edges in the graph
<DL></DL><P>
<A NAME="CountEdges">
<A NAME ="DOC.194.46">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdges(int t)</B></TT>
<DD> return number of edges of type t in the graph
<DL></DL><P>
<A NAME="CountEdges">
<A NAME ="DOC.194.47">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdges(const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> return number of edges having name n in the graph
<DL></DL><P>
<A NAME="CountEdges">
<A NAME ="DOC.194.48">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdges(const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> return nr. of edges of type t, having name n in the graph
<DL></DL><P>
<A NAME="CountEdgesFrom">
<A NAME ="DOC.194.49">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdgesFrom(<!1><A HREF="Subject.html">Subject</A> *s)</B></TT>
<DD> return nr. of edges departing from subject s
<DL></DL><P>
<A NAME="CountEdgesFrom">
<A NAME ="DOC.194.50">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdgesFrom(<!1><A HREF="Subject.html">Subject</A> *s, int t)</B></TT>
<DD> return nr. of edges of type t departing from subject s
<DL></DL><P>
<A NAME="CountEdgesFrom">
<A NAME ="DOC.194.51">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdgesFrom(<!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> return number of edges having name n departing from subject s
<DL></DL><P>
<A NAME="CountEdgesFrom">
<A NAME ="DOC.194.52">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdgesFrom(<!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> return number of edges of type t, having name n, departing from subject s
<DL></DL><P>
<A NAME="CountEdgesTo">
<A NAME ="DOC.194.53">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdgesTo(<!1><A HREF="Subject.html">Subject</A> *s)</B></TT>
<DD> return nr. of edges going to subject s
<DL></DL><P>
<A NAME="CountEdgesTo">
<A NAME ="DOC.194.54">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdgesTo(<!1><A HREF="Subject.html">Subject</A> *s, int t)</B></TT>
<DD> return nr. of edges of type t going to subject s
<DL></DL><P>
<A NAME="CountEdgesTo">
<A NAME ="DOC.194.55">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdgesTo(<!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> return number of edges having name n going to subject s
<DL></DL><P>
<A NAME="CountEdgesTo">
<A NAME ="DOC.194.56">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdgesTo(<!1><A HREF="Subject.html">Subject</A> *s, const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> return number of edges of type t, having name n going to subject s
<DL></DL><P>
<A NAME="CountEdges">
<A NAME ="DOC.194.57">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdges(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)</B></TT>
<DD> return number of edges between subjects s1 and s2
<DL></DL><P>
<A NAME="CountEdges">
<A NAME ="DOC.194.58">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdges(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, int t)</B></TT>
<DD> return number of edges of type t between subjects s1 and s2
<DL></DL><P>
<A NAME="CountEdges">
<A NAME ="DOC.194.59">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdges(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, const <!1><A HREF="string.html">string</A> *n)</B></TT>
<DD> return number of edges having name n between subjects s1 and s2
<DL></DL><P>
<A NAME="CountEdges">
<A NAME ="DOC.194.60">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountEdges(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, const <!1><A HREF="string.html">string</A> *n, int t)</B></TT>
<DD> return number of edges of type t, having name n between subjects s1 and s2
<DL></DL><P>
<A NAME="PathExists">
<A NAME ="DOC.194.61">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  PathExists(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)</B></TT>
<DD> returns if there is some connected path of graph edges from s1 to s2.
<DL></DL><P>
<A NAME="PathExists">
<A NAME ="DOC.194.62">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  PathExists(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, int t)</B></TT>
<DD> returns if there is some conn. path of graph edges of type t from s1 to s2.
<DL></DL><P>
<A NAME="UndirectedPathExists">
<A NAME ="DOC.194.63">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  UndirectedPathExists(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2)</B></TT>
<DD> return if there's path from s1 to s2. irregardless edge direction.
<DL></DL><P>
<A NAME="WriteSubjects">
<A NAME ="DOC.194.64">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  WriteSubjects(<!1><A HREF="OutputFile.html">OutputFile</A> *f)</B></TT>
<DD> Writes all nodes and edges to outputfile f.
<DL></DL><P>
<A NAME="InitConnections">
<A NAME ="DOC.194.65">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  void  InitConnections()</B></TT>
<DD> initializes the table containing all allowed connections.
<DL></DL><P>
<A NAME="SetCounter">
<A NAME ="DOC.194.66">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetCounter(int n)</B></TT>
<DD> some counter can be used
<DL></DL><P>
<A NAME="GetCounter">
<A NAME ="DOC.194.67">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetCounter()</B></TT>
<DL></DL><P>
<A NAME="SetIndexPrefix">
<A NAME ="DOC.194.68">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetIndexPrefix(const char *s)</B></TT>
<DD> some string can be used as index prefix.
<DL></DL><P>
<A NAME="SetIndexPrefix">
<A NAME ="DOC.194.69">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  SetIndexPrefix(const <!1><A HREF="string.html">string</A> *s)</B></TT>
<DL></DL><P>
<A NAME="GetIndexPrefix">
<A NAME ="DOC.194.70">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const  <!1><A HREF="string.html">string</A>*  GetIndexPrefix() const </B></TT>
<DL></DL><P>
<A NAME="GetIndex">
<A NAME ="DOC.194.71">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void  GetIndex(<!1><A HREF="string.html">string</A> *s)</B></TT>
<DD> index string := prefix + counter.
<DL></DL><P>
<A NAME="GetNextIndex">
<A NAME ="DOC.194.72">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  void  GetNextIndex(<!1><A HREF="string.html">string</A> *index)</B></TT>
<DD> assign to index a new unique index
<DL></DL><P>
<A NAME="CountIndexes">
<A NAME ="DOC.194.73">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual  int  CountIndexes(const <!1><A HREF="string.html">string</A> *index)</B></TT>
<DD> return number of nodes in the graph having this index.
<DL></DL><P>
<A NAME="nodeTypes">
<A NAME ="DOC.194.74">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int*  nodeTypes</B></TT>
<DD> Allowed 'connected' types in graph (depends on type of editor).
<DL></DL><P>
<A NAME="edgeTypes">
<A NAME ="DOC.194.75">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int*  edgeTypes</B></TT>
<DD> Allowed edges type in graph (depends on type of editor).
<DL></DL><P>
<A NAME="">
<A NAME ="DOC.194.76">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B>  enum </B></TT>
<DD> Max. number of different connected types and edge types.
<DL></DL><P>
<A NAME="connections">
<A NAME ="DOC.194.77">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  connections[MAX_TYPES][MAX_TYPES][MAX_TYPES]</B></TT>
<DD> matrix to store what types can be connected by what edge types.
<DL></DL><P>
<A NAME="nodes">
<A NAME ="DOC.194.78">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="List.html">List</A> <<!1><A HREF="Node.html">Node</A> *> *  nodes</B></TT>
<DD> the graph nodes.
<DL></DL><P>
<A NAME="edges">
<A NAME ="DOC.194.79">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="List.html">List</A> <<!1><A HREF="Edge.html">Edge</A> *> *  edges</B></TT>
<DD> the graph edges.
<DL></DL><P>
<A NAME="PathExists">
<A NAME ="DOC.194.80">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  PathExists(<!1><A HREF="Subject.html">Subject</A> *s1, <!1><A HREF="Subject.html">Subject</A> *s2, int edgetype, bool Directed)</B></TT>
<DD> used by other PathExists.
<DL></DL><P>
<A NAME="CountIndex">
<A NAME ="DOC.194.81">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  CountIndex(const <!1><A HREF="string.html">string</A> *index, <!1><A HREF="List.html">List</A><<!1><A HREF="Subject.html">Subject</A> *> *l)</B></TT>
<DD> return number of nodes in l having this index 
<DL></DL><P></DL>
<hr>
<DL><DT><B>Direct child classes:
</B><DD><A HREF="TRGraph.html"> TRGraph </A><br>
<A HREF="STGraph.html"> STGraph </A><br>
<A HREF="SNGraph.html"> SNGraph </A><br>
<A HREF="RPGraph.html"> RPGraph </A><br>
<A HREF="PSGraph.html"> PSGraph </A><br>
<A HREF="GDGraph.html"> GDGraph </A><br>
<A HREF="ERGraph.html"> ERGraph </A><br>
<A HREF="DFGraph.html"> DFGraph </A><br>
<A HREF="CPGraph.html"> CPGraph </A><br>
<A HREF="ATGraph.html"> ATGraph </A><br>
</DL>
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I>  <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
<P Align=Center><I>this page has been generated automatically by doc++</I>
<P Align=Center><I>(c)opyright by <A HREF="http://www.zib.de/zoeckler/"> Malte  Z&ouml;ckler</A>, <A HREF="mailto:wunderling@zib.de"> Roland Wunderling </A><br>contact: <A HREF="mailto:doc++@zib.de"> doc++@zib.de</a></I>
</BODY>