doc/images/strongly_connected_components.eps
author Peter Kovacs <kpeter@inf.elte.hu>
Tue, 15 Mar 2011 19:32:21 +0100
changeset 936 ddd3c0d3d9bf
parent 586 7c12061bd271
child 1045 4e8787627db3
permissions -rw-r--r--
Implement the scaling Price Refinement heuristic in CostScaling (#417)
instead of Early Termination.

These two heuristics are similar, but the newer one is faster
and not only makes it possible to skip some epsilon phases, but
it can improve the performance of the other phases, as well.
kpeter@586
     1
%!PS-Adobe-2.0 EPSF-2.0
kpeter@586
     2
%%Creator: LEMON, graphToEps()
kpeter@586
     3
%%CreationDate: Fri Nov  4 13:47:12 2005
alpar@587
     4
%%BoundingBox: 0 0 842 596
kpeter@586
     5
%%EndComments
kpeter@586
     6
/lb { setlinewidth setrgbcolor newpath moveto
kpeter@586
     7
      4 2 roll 1 index 1 index curveto stroke } bind def
kpeter@586
     8
/l { setlinewidth setrgbcolor newpath moveto lineto stroke } bind def
kpeter@586
     9
/c { newpath dup 3 index add 2 index moveto 0 360 arc closepath } bind def
kpeter@586
    10
/sq { newpath 2 index 1 index add 2 index 2 index add moveto
kpeter@586
    11
      2 index 1 index sub 2 index 2 index add lineto
kpeter@586
    12
      2 index 1 index sub 2 index 2 index sub lineto
kpeter@586
    13
      2 index 1 index add 2 index 2 index sub lineto
kpeter@586
    14
      closepath pop pop pop} bind def
kpeter@586
    15
/di { newpath 2 index 1 index add 2 index moveto
kpeter@586
    16
      2 index             2 index 2 index add lineto
kpeter@586
    17
      2 index 1 index sub 2 index             lineto
kpeter@586
    18
      2 index             2 index 2 index sub lineto
kpeter@586
    19
      closepath pop pop pop} bind def
kpeter@586
    20
/nc { 0 0 0 setrgbcolor 5 index 5 index 5 index c fill
kpeter@586
    21
     setrgbcolor 1.1 div c fill
kpeter@586
    22
   } bind def
kpeter@586
    23
/nsq { 0 0 0 setrgbcolor 5 index 5 index 5 index sq fill
kpeter@586
    24
     setrgbcolor 1.1 div sq fill
kpeter@586
    25
   } bind def
kpeter@586
    26
/ndi { 0 0 0 setrgbcolor 5 index 5 index 5 index di fill
kpeter@586
    27
     setrgbcolor 1.1 div di fill
kpeter@586
    28
   } bind def
kpeter@586
    29
/arrl 10 def
kpeter@586
    30
/arrw 3 def
kpeter@586
    31
/lrl { 2 index mul exch 2 index mul exch rlineto pop} bind def
kpeter@586
    32
/arr { setrgbcolor /y1 exch def /x1 exch def /dy exch def /dx exch def
kpeter@586
    33
       /w exch def /len exch def
kpeter@586
    34
       newpath x1 dy w 2 div mul add y1 dx w 2 div mul sub moveto
kpeter@586
    35
       len w sub arrl sub dx dy lrl
kpeter@586
    36
       arrw dy dx neg lrl
kpeter@586
    37
       dx arrl w add mul dy w 2 div arrw add mul sub
kpeter@586
    38
       dy arrl w add mul dx w 2 div arrw add mul add rlineto
kpeter@586
    39
       dx arrl w add mul neg dy w 2 div arrw add mul sub
kpeter@586
    40
       dy arrl w add mul neg dx w 2 div arrw add mul add rlineto
kpeter@586
    41
       arrw dy dx neg lrl
kpeter@586
    42
       len w sub arrl sub neg dx dy lrl
kpeter@586
    43
       closepath fill } bind def
kpeter@586
    44
/cshow { 2 index 2 index moveto dup stringwidth pop
kpeter@586
    45
         neg 2 div fosi .35 mul neg rmoveto show pop pop} def
kpeter@586
    46
kpeter@586
    47
gsave
alpar@587
    48
90 rotate
alpar@587
    49
0 -842 translate
kpeter@586
    50
77.1122 15 translate
kpeter@586
    51
0.585745 dup scale
kpeter@586
    52
90 rotate
kpeter@586
    53
695.963 -397.916 translate
kpeter@586
    54
%Edges:
kpeter@586
    55
gsave
kpeter@586
    56
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
    57
218.178 27.2723 moveto
kpeter@586
    58
192.373 -40.1551 188.622 -49.9556 169.228 -100.631 curveto stroke
kpeter@586
    59
newpath 164.939 -111.838 moveto 165.492 -99.2013 lineto 172.964 -102.061 lineto closepath fill
kpeter@586
    60
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
    61
44.8044 15.5841 moveto
kpeter@586
    62
119.293 20.6059 129.775 21.3125 186.25 25.1199 curveto stroke
kpeter@586
    63
newpath 198.223 25.927 moveto 186.519 21.1289 lineto 185.981 29.1108 lineto closepath fill
kpeter@586
    64
2 setlinewidth 1 0 0 setrgbcolor newpath
kpeter@586
    65
218.178 27.2723 moveto
kpeter@586
    66
285.395 -87.4449 290.763 -96.6058 348.102 -194.464 curveto stroke
kpeter@586
    67
newpath 354.169 -204.818 moveto 344.651 -196.487 lineto 351.554 -192.442 lineto closepath fill
kpeter@586
    68
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
    69
157.79 -130.517 moveto
kpeter@586
    70
108.71 -67.0521 102.27 -58.7243 64.3804 -9.72954 curveto stroke
kpeter@586
    71
newpath 57.0394 -0.236898 moveto 67.5446 -7.28254 lineto 61.2162 -12.1765 lineto closepath fill
kpeter@586
    72
2 setlinewidth 1 0 0 setrgbcolor newpath
kpeter@586
    73
-105.193 -261.035 moveto
kpeter@586
    74
-35.6576 -132.801 -30.5923 -123.459 29.5506 -12.5464 curveto stroke
kpeter@586
    75
newpath 35.2708 -1.99743 moveto 33.0669 -14.4531 lineto 26.0343 -10.6397 lineto closepath fill
kpeter@586
    76
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
    77
-465.576 -42.8564 moveto
kpeter@586
    78
-559.078 -25.5413 -569.47 -23.6169 -644.498 -9.72286 curveto stroke
kpeter@586
    79
newpath -656.297 -7.5378 moveto -643.77 -5.78973 lineto -645.226 -13.656 lineto closepath fill
kpeter@586
    80
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
    81
-574.666 -153.893 moveto
kpeter@586
    82
-528.842 -107.252 -521.515 -99.794 -488.002 -65.683 curveto stroke
kpeter@586
    83
newpath -479.592 -57.123 moveto -485.149 -68.4863 lineto -490.856 -62.8797 lineto closepath fill
kpeter@586
    84
2 setlinewidth 1 0 0 setrgbcolor newpath
kpeter@586
    85
-490.901 120.777 moveto
kpeter@586
    86
-480.122 51.1328 -478.519 40.7713 -470.47 -11.2329 curveto stroke
kpeter@586
    87
newpath -468.635 -23.0917 moveto -474.423 -11.8447 lineto -466.517 -10.6212 lineto closepath fill
kpeter@586
    88
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
    89
-675.963 -3.89604 moveto
kpeter@586
    90
-632.116 -68.8235 -626.228 -77.5422 -592.575 -127.374 curveto stroke
kpeter@586
    91
newpath -585.859 -137.319 moveto -595.89 -129.612 lineto -589.26 -125.135 lineto closepath fill
kpeter@586
    92
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
    93
-490.901 120.777 moveto
kpeter@586
    94
-435.445 215.844 -430.107 224.995 -384.3 303.522 curveto stroke
kpeter@586
    95
newpath -378.253 313.887 moveto -380.845 301.507 lineto -387.755 305.537 lineto closepath fill
kpeter@586
    96
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
    97
-266.879 114.933 moveto
kpeter@586
    98
-367.067 117.547 -377.642 117.822 -458.912 119.943 curveto stroke
kpeter@586
    99
newpath -470.908 120.255 moveto -458.807 123.941 lineto -459.016 115.944 lineto closepath fill
kpeter@586
   100
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   101
-368.176 331.163 moveto
kpeter@586
   102
-322.511 233.685 -318.018 224.095 -280.454 143.911 curveto stroke
kpeter@586
   103
newpath -275.364 133.044 moveto -284.076 142.214 lineto -276.832 145.608 lineto closepath fill
kpeter@586
   104
2 setlinewidth 1 0 0 setrgbcolor newpath
kpeter@586
   105
-266.879 114.933 moveto
kpeter@586
   106
-224.004 235.52 -220.448 245.52 -184.094 347.765 curveto stroke
kpeter@586
   107
newpath -180.074 359.072 moveto -180.325 346.425 lineto -187.863 349.105 lineto closepath fill
kpeter@586
   108
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   109
-251.294 -335.059 moveto
kpeter@586
   110
-189.25 -303.624 -179.902 -298.887 -133.738 -275.498 curveto stroke
kpeter@586
   111
newpath -123.034 -270.074 moveto -131.93 -279.066 lineto -135.546 -271.93 lineto closepath fill
kpeter@586
   112
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   113
-389.604 -136.361 moveto
kpeter@586
   114
-327.15 -226.083 -321.098 -234.777 -269.576 -308.795 curveto stroke
kpeter@586
   115
newpath -262.72 -318.644 moveto -272.859 -311.081 lineto -266.293 -306.51 lineto closepath fill
kpeter@586
   116
2 setlinewidth 1 0 0 setrgbcolor newpath
kpeter@586
   117
5.84406 175.322 moveto
kpeter@586
   118
-76.0754 267.926 -83.1051 275.873 -152.172 353.948 curveto stroke
kpeter@586
   119
newpath -160.122 362.936 moveto -149.176 356.598 lineto -155.168 351.298 lineto closepath fill
kpeter@586
   120
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   121
169.478 311.683 moveto
kpeter@586
   122
96.8003 251.119 88.6819 244.353 30.4273 195.808 curveto stroke
kpeter@586
   123
newpath 21.2086 188.126 moveto 27.8666 198.881 lineto 32.988 192.735 lineto closepath fill
kpeter@586
   124
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   125
342.851 111.037 moveto
kpeter@586
   126
263.766 202.563 256.831 210.589 190.4 287.47 curveto stroke
kpeter@586
   127
newpath 182.554 296.55 moveto 193.427 290.085 lineto 187.373 284.855 lineto closepath fill
kpeter@586
   128
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   129
5.84406 175.322 moveto
kpeter@586
   130
163.16 145.314 173.605 143.321 311.418 117.033 curveto stroke
kpeter@586
   131
newpath 323.205 114.784 moveto 310.668 113.104 lineto 312.167 120.962 lineto closepath fill
kpeter@586
   132
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   133
342.851 111.037 moveto
kpeter@586
   134
497.255 2.58683 505.964 -3.53033 643.932 -100.436 curveto stroke
kpeter@586
   135
newpath 653.752 -107.334 moveto 641.633 -103.71 lineto 646.231 -97.163 lineto closepath fill
kpeter@586
   136
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   137
364.28 -222.074 moveto
kpeter@586
   138
354.298 -66.9063 353.616 -56.2971 344.905 79.1029 curveto stroke
kpeter@586
   139
newpath 344.135 91.0781 moveto 348.897 79.3597 lineto 340.914 78.8461 lineto closepath fill
kpeter@586
   140
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   141
670.118 -118.829 moveto
kpeter@586
   142
528.037 -166.793 517.967 -170.192 394.599 -211.839 curveto stroke
kpeter@586
   143
newpath 383.229 -215.677 moveto 393.32 -208.049 lineto 395.878 -215.629 lineto closepath fill
kpeter@586
   144
2 setlinewidth 1 0 0 setrgbcolor newpath
kpeter@586
   145
-105.193 -261.035 moveto
kpeter@586
   146
118.401 -242.479 129.015 -241.598 332.39 -224.721 curveto stroke
kpeter@586
   147
newpath 344.348 -223.728 moveto 332.72 -228.707 lineto 332.059 -220.734 lineto closepath fill
kpeter@586
   148
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   149
-105.193 -261.035 moveto
kpeter@586
   150
-160.867 -161.176 -166.028 -151.918 -212.336 -68.858 curveto stroke
kpeter@586
   151
newpath -218.179 -58.3769 moveto -208.842 -66.9102 lineto -215.829 -70.8058 lineto closepath fill
kpeter@586
   152
2 setlinewidth 0 0 1 setrgbcolor newpath
kpeter@586
   153
-227.918 -40.9084 moveto
kpeter@586
   154
-298.35 -82.4884 -307.42 -87.8432 -362.048 -120.093 curveto stroke
kpeter@586
   155
newpath -372.381 -126.193 moveto -364.081 -116.648 lineto -360.014 -123.537 lineto closepath fill
kpeter@586
   156
grestore
kpeter@586
   157
%Nodes:
kpeter@586
   158
gsave
kpeter@586
   159
-389.604 -136.361 20 0 1 0 nc
kpeter@586
   160
-227.918 -40.9084 20 0 1 0 nc
kpeter@586
   161
-105.193 -261.035 20 0 1 0 nc
kpeter@586
   162
364.28 -222.074 20 1 1 0 nc
kpeter@586
   163
670.118 -118.829 20 1 1 0 nc
kpeter@586
   164
342.851 111.037 20 1 1 0 nc
kpeter@586
   165
5.84406 175.322 20 1 1 0 nc
kpeter@586
   166
169.478 311.683 20 1 1 0 nc
kpeter@586
   167
-173.374 377.916 20 1 0 1 nc
kpeter@586
   168
-251.294 -335.059 20 0 1 0 nc
kpeter@586
   169
-266.879 114.933 20 0 0 0 nc
kpeter@586
   170
-368.176 331.163 20 0 0 0 nc
kpeter@586
   171
-490.901 120.777 20 0 0 0 nc
kpeter@586
   172
-574.666 -153.893 20 1 0 0 nc
kpeter@586
   173
-675.963 -3.89604 20 1 0 0 nc
kpeter@586
   174
-465.576 -42.8564 20 1 0 0 nc
kpeter@586
   175
44.8044 15.5841 20 0 0 1 nc
kpeter@586
   176
157.79 -130.517 20 0 0 1 nc
kpeter@586
   177
218.178 27.2723 20 0 0 1 nc
kpeter@586
   178
grestore
kpeter@586
   179
grestore
kpeter@586
   180
showpage