@knowvah/dot-engine 2.10.2 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (344) hide show
  1. package/dist/gvc/context.d.ts.map +1 -1
  2. package/dist/gvc/emit-xdot.d.ts.map +1 -1
  3. package/dist/gvc/layout-reset.d.ts +38 -1
  4. package/dist/gvc/layout-reset.d.ts.map +1 -1
  5. package/dist/index.js +1191 -423
  6. package/dist/index.js.map +4 -4
  7. package/dist/layout/circo/circular.d.ts.map +1 -1
  8. package/dist/layout/circo/index.d.ts.map +1 -1
  9. package/dist/layout/dot/edge-route-helpers.d.ts +6 -1
  10. package/dist/layout/dot/edge-route-helpers.d.ts.map +1 -1
  11. package/dist/layout/dot/edge-route-rank.d.ts +4 -1
  12. package/dist/layout/dot/edge-route-rank.d.ts.map +1 -1
  13. package/dist/layout/dot/index.d.ts.map +1 -1
  14. package/dist/layout/dot/init.d.ts +0 -10
  15. package/dist/layout/dot/init.d.ts.map +1 -1
  16. package/dist/layout/fdp/cluster-edges.d.ts +11 -0
  17. package/dist/layout/fdp/cluster-edges.d.ts.map +1 -1
  18. package/dist/layout/fdp/init.d.ts.map +1 -1
  19. package/dist/layout/neato/closest.d.ts +20 -0
  20. package/dist/layout/neato/closest.d.ts.map +1 -0
  21. package/dist/layout/neato/constrained-majorization.d.ts +13 -0
  22. package/dist/layout/neato/constrained-majorization.d.ts.map +1 -1
  23. package/dist/layout/neato/embed-graph.d.ts +20 -0
  24. package/dist/layout/neato/embed-graph.d.ts.map +1 -0
  25. package/dist/layout/neato/fdp-adjust.d.ts.map +1 -1
  26. package/dist/layout/neato/index.d.ts.map +1 -1
  27. package/dist/layout/neato/init-dim.d.ts +54 -0
  28. package/dist/layout/neato/init-dim.d.ts.map +1 -0
  29. package/dist/layout/neato/init.d.ts +1 -11
  30. package/dist/layout/neato/init.d.ts.map +1 -1
  31. package/dist/layout/neato/kk.d.ts +4 -2
  32. package/dist/layout/neato/kk.d.ts.map +1 -1
  33. package/dist/layout/neato/matrix-ops-dense.d.ts +34 -0
  34. package/dist/layout/neato/matrix-ops-dense.d.ts.map +1 -0
  35. package/dist/layout/neato/pca.d.ts +14 -0
  36. package/dist/layout/neato/pca.d.ts.map +1 -0
  37. package/dist/layout/neato/sgd.d.ts +2 -3
  38. package/dist/layout/neato/sgd.d.ts.map +1 -1
  39. package/dist/layout/neato/start.d.ts +5 -5
  40. package/dist/layout/neato/start.d.ts.map +1 -1
  41. package/dist/layout/neato/stress-kernel.d.ts +10 -2
  42. package/dist/layout/neato/stress-kernel.d.ts.map +1 -1
  43. package/dist/layout/neato/stress-subspace.d.ts +39 -0
  44. package/dist/layout/neato/stress-subspace.d.ts.map +1 -0
  45. package/dist/layout/neato/vpsc-adjust.d.ts.map +1 -1
  46. package/dist/layout/osage/index.d.ts +1 -4
  47. package/dist/layout/osage/index.d.ts.map +1 -1
  48. package/dist/layout/pack/ccomps.d.ts +4 -2
  49. package/dist/layout/pack/ccomps.d.ts.map +1 -1
  50. package/dist/layout/patchwork/index.d.ts.map +1 -1
  51. package/dist/layout/sfdp/index.d.ts.map +1 -1
  52. package/dist/layout/sfdp/init.d.ts +6 -7
  53. package/dist/layout/sfdp/init.d.ts.map +1 -1
  54. package/dist/layout/twopi/circle.d.ts.map +1 -1
  55. package/dist/layout/twopi/index.d.ts.map +1 -1
  56. package/dist/layout/twopi/init.d.ts.map +1 -1
  57. package/dist/render/dot/attrs.d.ts +7 -0
  58. package/dist/render/dot/attrs.d.ts.map +1 -1
  59. package/dist/render.js +1574 -806
  60. package/dist/render.js.map +4 -4
  61. package/package.json +4 -4
  62. package/src/gvc/__fixtures__/rerender/abom-shift-pack.dot.plain.nofree.1 +20 -0
  63. package/src/gvc/__fixtures__/rerender/abom-shift-pack.dot.plain.nofree.2 +20 -0
  64. package/src/gvc/__fixtures__/rerender/abom-shift-pack.dot.plain.nofree.3 +20 -0
  65. package/src/gvc/__fixtures__/rerender/abom-shift-pack.gv +1 -0
  66. package/src/gvc/__fixtures__/rerender/abom-shift-parity.dot.plain.nofree.1 +22 -0
  67. package/src/gvc/__fixtures__/rerender/abom-shift-parity.dot.plain.nofree.2 +22 -0
  68. package/src/gvc/__fixtures__/rerender/abom-shift-parity.dot.plain.nofree.3 +22 -0
  69. package/src/gvc/__fixtures__/rerender/abom-shift-parity.gv +1 -0
  70. package/src/gvc/__fixtures__/rerender/abom-shift.dot.plain.nofree.1 +13 -0
  71. package/src/gvc/__fixtures__/rerender/abom-shift.dot.plain.nofree.2 +13 -0
  72. package/src/gvc/__fixtures__/rerender/abom-shift.dot.plain.nofree.3 +13 -0
  73. package/src/gvc/__fixtures__/rerender/abom-shift.gv +1 -0
  74. package/src/gvc/__fixtures__/rerender/cluster-edge-splines.fdp.plain.1 +10 -0
  75. package/src/gvc/__fixtures__/rerender/cluster-edge-splines.fdp.plain.2 +11 -0
  76. package/src/gvc/__fixtures__/rerender/cluster-edge-splines.gv +9 -0
  77. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.dot.1 +40 -0
  78. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.dot.2 +40 -0
  79. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.plain.noaddr.1 +15 -0
  80. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.plain.noaddr.2 +17 -0
  81. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-plain.1 +40 -0
  82. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-plain.2 +15 -0
  83. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-svg.1 +40 -0
  84. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-svg.2 +99 -0
  85. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-json-json.1 +489 -0
  86. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-json-json.2 +503 -0
  87. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-nofree-dot-svg.1 +40 -0
  88. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-nofree-dot-svg.2 +109 -0
  89. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.xdot.1 +69 -0
  90. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.xdot.2 +70 -0
  91. package/src/gvc/__fixtures__/rerender/cluster-edges.gv +15 -0
  92. package/src/gvc/__fixtures__/rerender/fdp-1581.fdp.dot.1 +104 -0
  93. package/src/gvc/__fixtures__/rerender/fdp-1581.fdp.dot.2 +104 -0
  94. package/src/gvc/__fixtures__/rerender/fdp-1581.gv +26 -0
  95. package/src/gvc/__fixtures__/rerender/flat-rev-stale.dot.plain.nofree.1 +34 -0
  96. package/src/gvc/__fixtures__/rerender/flat-rev-stale.dot.plain.nofree.2 +34 -0
  97. package/src/gvc/__fixtures__/rerender/flat-rev-stale.dot.plain.nofree.3 +34 -0
  98. package/src/gvc/__fixtures__/rerender/flat-rev-stale.gv +33 -0
  99. package/src/gvc/__fixtures__/rerender/multi-edge.dot.svg.nofree.1 +181 -0
  100. package/src/gvc/__fixtures__/rerender/multi-edge.dot.svg.nofree.2 +218 -0
  101. package/src/gvc/__fixtures__/rerender/multi-edge.dot.svg.nofree.3 +255 -0
  102. package/src/gvc/__fixtures__/rerender/regen.sh +25 -0
  103. package/src/gvc/context.ts +7 -2
  104. package/src/gvc/emit-xdot.ts +37 -7
  105. package/src/gvc/layout-reset.ts +68 -2
  106. package/src/layout/circo/circular.ts +3 -1
  107. package/src/layout/circo/index.ts +1 -3
  108. package/src/layout/dot/edge-route-helpers.ts +8 -2
  109. package/src/layout/dot/edge-route-rank.ts +20 -2
  110. package/src/layout/dot/index.ts +17 -2
  111. package/src/layout/dot/init.ts +11 -49
  112. package/src/layout/dot/splines-flat.ts +12 -12
  113. package/src/layout/fdp/cluster-edges.ts +0 -0
  114. package/src/layout/fdp/init.ts +2 -17
  115. package/src/layout/neato/__fixtures__/dim/circuit-dim3.dot +33 -0
  116. package/src/layout/neato/__fixtures__/dim/circuit-dim3.gv +12 -0
  117. package/src/layout/neato/__fixtures__/dim/circuit-dim3.stderr +0 -0
  118. package/src/layout/neato/__fixtures__/dim/circuit-dim3.xdot +54 -0
  119. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.dot +32 -0
  120. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.gv +11 -0
  121. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.stderr +0 -0
  122. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.xdot +53 -0
  123. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.dot +32 -0
  124. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.gv +11 -0
  125. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.stderr +0 -0
  126. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.xdot +53 -0
  127. package/src/layout/neato/__fixtures__/dim/dim3.dot +31 -0
  128. package/src/layout/neato/__fixtures__/dim/dim3.gv +10 -0
  129. package/src/layout/neato/__fixtures__/dim/dim3.stderr +0 -0
  130. package/src/layout/neato/__fixtures__/dim/dim3.xdot +52 -0
  131. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.dot +32 -0
  132. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.gv +11 -0
  133. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.stderr +0 -0
  134. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.xdot +53 -0
  135. package/src/layout/neato/__fixtures__/dim/dimen3.dot +31 -0
  136. package/src/layout/neato/__fixtures__/dim/dimen3.gv +10 -0
  137. package/src/layout/neato/__fixtures__/dim/dimen3.stderr +0 -0
  138. package/src/layout/neato/__fixtures__/dim/dimen3.xdot +52 -0
  139. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.dot +267 -0
  140. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.gv +84 -0
  141. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.stderr +0 -0
  142. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.xdot +468 -0
  143. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.dot +267 -0
  144. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.gv +84 -0
  145. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.stderr +0 -0
  146. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.xdot +468 -0
  147. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.dot +268 -0
  148. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.gv +85 -0
  149. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.stderr +0 -0
  150. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.xdot +469 -0
  151. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.dot +484 -0
  152. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.gv +151 -0
  153. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.stderr +0 -0
  154. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.xdot +852 -0
  155. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.dot +34 -0
  156. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.gv +13 -0
  157. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.stderr +0 -0
  158. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.xdot +55 -0
  159. package/src/layout/neato/__fixtures__/dim/hier-dim3.dot +33 -0
  160. package/src/layout/neato/__fixtures__/dim/hier-dim3.gv +12 -0
  161. package/src/layout/neato/__fixtures__/dim/hier-dim3.stderr +0 -0
  162. package/src/layout/neato/__fixtures__/dim/hier-dim3.xdot +54 -0
  163. package/src/layout/neato/__fixtures__/dim/hier-dim4.dot +33 -0
  164. package/src/layout/neato/__fixtures__/dim/hier-dim4.gv +12 -0
  165. package/src/layout/neato/__fixtures__/dim/hier-dim4.stderr +0 -0
  166. package/src/layout/neato/__fixtures__/dim/hier-dim4.xdot +54 -0
  167. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.dot +32 -0
  168. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.gv +11 -0
  169. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.stderr +0 -0
  170. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.xdot +53 -0
  171. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.dot +34 -0
  172. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.gv +13 -0
  173. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.stderr +0 -0
  174. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.xdot +55 -0
  175. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.dot +37 -0
  176. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.gv +12 -0
  177. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.stderr +0 -0
  178. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.xdot +58 -0
  179. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.dot +141 -0
  180. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.gv +48 -0
  181. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.stderr +1 -0
  182. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.xdot +233 -0
  183. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.dot +21 -0
  184. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.gv +8 -0
  185. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.stderr +1 -0
  186. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.xdot +33 -0
  187. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.dot +23 -0
  188. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.gv +10 -0
  189. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.stderr +1 -0
  190. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.xdot +35 -0
  191. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.dot +23 -0
  192. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.gv +10 -0
  193. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.stderr +1 -0
  194. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.xdot +35 -0
  195. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.dot +26 -0
  196. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.gv +7 -0
  197. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.stderr +0 -0
  198. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.xdot +44 -0
  199. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.dot +28 -0
  200. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.gv +9 -0
  201. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.stderr +0 -0
  202. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.xdot +46 -0
  203. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.dot +48 -0
  204. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.gv +15 -0
  205. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.stderr +0 -0
  206. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.xdot +79 -0
  207. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.dot +56 -0
  208. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.gv +17 -0
  209. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.stderr +0 -0
  210. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.xdot +94 -0
  211. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.dot +47 -0
  212. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.gv +14 -0
  213. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.stderr +0 -0
  214. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.xdot +78 -0
  215. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.dot +34 -0
  216. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.gv +13 -0
  217. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.stderr +0 -0
  218. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.xdot +55 -0
  219. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.dot +34 -0
  220. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.gv +13 -0
  221. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.stderr +0 -0
  222. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.xdot +55 -0
  223. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.dot +34 -0
  224. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.gv +13 -0
  225. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.stderr +0 -0
  226. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.xdot +55 -0
  227. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.dot +15 -0
  228. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.gv +6 -0
  229. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.stderr +0 -0
  230. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.xdot +22 -0
  231. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.dot +33 -0
  232. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.gv +12 -0
  233. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.stderr +0 -0
  234. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.xdot +54 -0
  235. package/src/layout/neato/__fixtures__/dim/kk-dim3.dot +33 -0
  236. package/src/layout/neato/__fixtures__/dim/kk-dim3.gv +12 -0
  237. package/src/layout/neato/__fixtures__/dim/kk-dim3.stderr +0 -0
  238. package/src/layout/neato/__fixtures__/dim/kk-dim3.xdot +54 -0
  239. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.dot +33 -0
  240. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.gv +12 -0
  241. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.stderr +0 -0
  242. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.xdot +54 -0
  243. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.dot +39 -0
  244. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.gv +15 -0
  245. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.stderr +0 -0
  246. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.xdot +60 -0
  247. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.dot +33 -0
  248. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.gv +12 -0
  249. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.stderr +0 -0
  250. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.xdot +54 -0
  251. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.dot +33 -0
  252. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.gv +12 -0
  253. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.stderr +0 -0
  254. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.xdot +54 -0
  255. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.dot +33 -0
  256. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.gv +12 -0
  257. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.stderr +0 -0
  258. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.xdot +54 -0
  259. package/src/layout/neato/__fixtures__/dim/pack-dim3.dot +47 -0
  260. package/src/layout/neato/__fixtures__/dim/pack-dim3.gv +14 -0
  261. package/src/layout/neato/__fixtures__/dim/pack-dim3.stderr +0 -0
  262. package/src/layout/neato/__fixtures__/dim/pack-dim3.xdot +78 -0
  263. package/src/layout/neato/__fixtures__/dim/pins-dim3.dot +38 -0
  264. package/src/layout/neato/__fixtures__/dim/pins-dim3.gv +14 -0
  265. package/src/layout/neato/__fixtures__/dim/pins-dim3.stderr +0 -0
  266. package/src/layout/neato/__fixtures__/dim/pins-dim3.xdot +59 -0
  267. package/src/layout/neato/__fixtures__/dim/regen.sh +24 -0
  268. package/src/layout/neato/__fixtures__/dim/regular-dim3.dot +33 -0
  269. package/src/layout/neato/__fixtures__/dim/regular-dim3.gv +12 -0
  270. package/src/layout/neato/__fixtures__/dim/regular-dim3.stderr +0 -0
  271. package/src/layout/neato/__fixtures__/dim/regular-dim3.xdot +54 -0
  272. package/src/layout/neato/__fixtures__/dim/sgd-dim3.dot +33 -0
  273. package/src/layout/neato/__fixtures__/dim/sgd-dim3.gv +12 -0
  274. package/src/layout/neato/__fixtures__/dim/sgd-dim3.stderr +0 -0
  275. package/src/layout/neato/__fixtures__/dim/sgd-dim3.xdot +54 -0
  276. package/src/layout/neato/__fixtures__/dim/smart-units.json +16 -0
  277. package/src/layout/neato/__fixtures__/dim/subset-dim3.dot +33 -0
  278. package/src/layout/neato/__fixtures__/dim/subset-dim3.gv +12 -0
  279. package/src/layout/neato/__fixtures__/dim/subset-dim3.stderr +0 -0
  280. package/src/layout/neato/__fixtures__/dim/subset-dim3.xdot +54 -0
  281. package/src/layout/neato/closest.ts +206 -0
  282. package/src/layout/neato/constrained-majorization.ts +4 -23
  283. package/src/layout/neato/embed-graph.ts +81 -0
  284. package/src/layout/neato/fdp-adjust.ts +22 -8
  285. package/src/layout/neato/index.ts +26 -17
  286. package/src/layout/neato/init-dim.ts +165 -0
  287. package/src/layout/neato/init.ts +10 -38
  288. package/src/layout/neato/kk.ts +47 -41
  289. package/src/layout/neato/matrix-ops-dense.ts +232 -0
  290. package/src/layout/neato/pca.ts +60 -0
  291. package/src/layout/neato/sgd.ts +11 -4
  292. package/src/layout/neato/start.ts +8 -5
  293. package/src/layout/neato/stress-kernel.ts +65 -5
  294. package/src/layout/neato/stress-subspace.ts +371 -0
  295. package/src/layout/neato/vpsc-adjust.ts +3 -1
  296. package/src/layout/osage/index.ts +3 -22
  297. package/src/layout/pack/__fixtures__/cc-reuse/circo.dot +23 -0
  298. package/src/layout/pack/__fixtures__/cc-reuse/circo.gv +1 -0
  299. package/src/layout/pack/__fixtures__/cc-reuse/circo.stderr +0 -0
  300. package/src/layout/pack/__fixtures__/cc-reuse/circo.xdot +38 -0
  301. package/src/layout/pack/__fixtures__/cc-reuse/neato.dot +23 -0
  302. package/src/layout/pack/__fixtures__/cc-reuse/neato.gv +1 -0
  303. package/src/layout/pack/__fixtures__/cc-reuse/neato.stderr +0 -0
  304. package/src/layout/pack/__fixtures__/cc-reuse/neato.xdot +38 -0
  305. package/src/layout/pack/__fixtures__/cc-reuse/osage.dot +23 -0
  306. package/src/layout/pack/__fixtures__/cc-reuse/osage.gv +1 -0
  307. package/src/layout/pack/__fixtures__/cc-reuse/osage.stderr +0 -0
  308. package/src/layout/pack/__fixtures__/cc-reuse/osage.xdot +38 -0
  309. package/src/layout/pack/__fixtures__/cc-reuse/regen.sh +24 -0
  310. package/src/layout/pack/__fixtures__/cc-reuse/sfdp.dot +21 -0
  311. package/src/layout/pack/__fixtures__/cc-reuse/sfdp.gv +1 -0
  312. package/src/layout/pack/__fixtures__/cc-reuse/sfdp.stderr +0 -0
  313. package/src/layout/pack/__fixtures__/cc-reuse/sfdp.xdot +36 -0
  314. package/src/layout/pack/__fixtures__/cc-reuse/twopi.dot +21 -0
  315. package/src/layout/pack/__fixtures__/cc-reuse/twopi.gv +1 -0
  316. package/src/layout/pack/__fixtures__/cc-reuse/twopi.stderr +1 -0
  317. package/src/layout/pack/__fixtures__/cc-reuse/twopi.xdot +36 -0
  318. package/src/layout/pack/ccomps.ts +34 -6
  319. package/src/layout/patchwork/index.ts +1 -3
  320. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.dot +32 -0
  321. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.gv +11 -0
  322. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.stderr +0 -0
  323. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.xdot +53 -0
  324. package/src/layout/sfdp/__fixtures__/dim/dim3.dot +31 -0
  325. package/src/layout/sfdp/__fixtures__/dim/dim3.gv +10 -0
  326. package/src/layout/sfdp/__fixtures__/dim/dim3.stderr +0 -0
  327. package/src/layout/sfdp/__fixtures__/dim/dim3.xdot +52 -0
  328. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.dot +32 -0
  329. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.gv +11 -0
  330. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.stderr +0 -0
  331. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.xdot +53 -0
  332. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.dot +33 -0
  333. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.gv +12 -0
  334. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.stderr +0 -0
  335. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.xdot +54 -0
  336. package/src/layout/sfdp/__fixtures__/dim/regen.sh +24 -0
  337. package/src/layout/sfdp/index.ts +15 -10
  338. package/src/layout/sfdp/init.ts +27 -14
  339. package/src/layout/twopi/circle.ts +5 -1
  340. package/src/layout/twopi/index.ts +3 -0
  341. package/src/layout/twopi/init.ts +1 -3
  342. package/src/render/dot/agwrite.ts +2 -2
  343. package/src/render/dot/attrs.ts +16 -0
  344. package/src/render/dot/write-back.ts +2 -2
@@ -116,6 +116,21 @@ export function getAttrInt(g: Graph, key: string, defaultVal: number): number {
116
116
  // dotLayoutPipeline stays within the 30-line body limit.
117
117
  // ---------------------------------------------------------------------------
118
118
 
119
+ /**
120
+ * abomShift is port-only (AD-2): C's abomination uses rank -1 and leaves ND_rank
121
+ * alone, so a later layout starts from unshifted ranks. expand_ranksets adds to a
122
+ * rank set member's old ND_rank when no free ran, so the old shift comes off too.
123
+ * @see lib/dotgen/flat.c:abomination
124
+ * @see lib/dotgen/rank.c:expand_ranksets
125
+ */
126
+ function resetAbomShift(g: Graph): void {
127
+ const shift = g.info.abomShift ?? 0;
128
+ if (shift !== 0) {
129
+ for (const n of g.nodes.values()) n.info.rank = (n.info.rank ?? 0) - shift;
130
+ }
131
+ g.info.abomShift = 0;
132
+ }
133
+
119
134
  /**
120
135
  * Phase 0: parse rankdir, set edge type, and run aspect + init passes.
121
136
  * dotGraphInit must run first so g.info.flip is set before nodeinit uses it.
@@ -123,8 +138,7 @@ export function getAttrInt(g: Graph, key: string, defaultVal: number): number {
123
138
  * @see lib/dotgen/dotinit.c:dotLayout (static)
124
139
  */
125
140
  export function dotPhaseInit(g: Graph): void {
126
- // C's dot_init_edge overwrites ED_weight; dotInitEdge keeps only an aux graph's stamp.
127
- for (const e of g.edges) e.info.weight = undefined;
141
+ resetAbomShift(g);
128
142
  dotGraphInit(g);
129
143
  setEdgeTypeFromAttr(g, EDGETYPE_SPLINE);
130
144
  setAspect(g);
@@ -307,6 +321,7 @@ export function doDot(g: Graph): void {
307
321
  } else if (ratioIsNone(g)) {
308
322
  pinfo.doSplines = true;
309
323
  layoutAndPack(g, comps, pinfo, origOf);
324
+ for (const comp of comps) resetAbomShift(comp); // the next layout builds new components
310
325
  } else {
311
326
  // Non-trivial ratio with multiple components: C lays out the whole graph.
312
327
  dotLayoutPipeline(g);
@@ -98,11 +98,11 @@ export const CL_CROSS = 1000;
98
98
  */
99
99
  export function dotInitNode(n: Node): void {
100
100
  n.info.UF_size = 1;
101
- if (!n.info.in) n.info.in = { list: [], size: 0 };
102
- if (!n.info.out) n.info.out = { list: [], size: 0 };
103
- if (!n.info.flat_in) n.info.flat_in = { list: [], size: 0 };
104
- if (!n.info.flat_out) n.info.flat_out = { list: [], size: 0 };
105
- if (!n.info.other) n.info.other = { list: [], size: 0 };
101
+ n.info.in = { list: [], size: 0 };
102
+ n.info.out = { list: [], size: 0 };
103
+ n.info.flat_in = { list: [], size: 0 };
104
+ n.info.flat_out = { list: [], size: 0 };
105
+ n.info.other = { list: [], size: 0 };
106
106
  // Default lw = rw = 0.75in/2 × 72 = 27 pts; ht = 0.5in × 72 = 36 pts. C's
107
107
  // dot_init_node has no such fallback (gv_nodesize always sets a size); this is
108
108
  // only a guard for a node that reached here UNSIZED. Test `=== undefined`, not
@@ -170,15 +170,11 @@ function applyNonconstraintZero(e: Edge): void {
170
170
  */
171
171
  export function dotInitEdge(e: Edge): void {
172
172
  initEdgeConstraint(e);
173
- // C: ED_weight(e) = late_int(e, E_weight, 1, 0) — honor an explicit weight
174
- // attr (default 1, min 0). dotInitEdge is re-run on edges the flat-label
175
- // machinery has stamped with a synthetic weight (e.g. 10000); preserve that
176
- // when there is no attr, rather than resetting to the default. The group/
173
+ // C: ED_weight(e) = late_int(e, E_weight, 1, 0), the attribute only, on an aux
174
+ // edge too: make_flat_adj_edges writes its 10000 with agxset. The group and
177
175
  // nonconstraint adjustments below then apply on top, matching C's order.
178
176
  // @see lib/dotgen/dotinit.c:65
179
- e.info.weight = e.attrs.has('weight')
180
- ? lateInt(e.attrs.get('weight'), 1, 0)
181
- : (e.info.weight ?? 1);
177
+ e.info.weight = lateInt(e.attrs.get('weight'), 1, 0);
182
178
  e.info.count = 1;
183
179
  e.info.xpenalty = 1;
184
180
  applyGroupPenalty(e);
@@ -224,10 +220,7 @@ export function dotInitSubg(g: Graph): void {
224
220
  // ---------------------------------------------------------------------------
225
221
 
226
222
  /**
227
- * Drops a node's fast-graph lists. dot_init_node allocates new ones
228
- * unconditionally, and dot_cleanup frees them, so neither a later layout nor a
229
- * layout with no gvFreeLayout before it reads the previous layout's edges.
230
- * @see lib/dotgen/dotinit.c:dot_init_node (alloc_elist)
223
+ * Drops a node's fast-graph lists, as dot_cleanup frees them.
231
224
  * @see lib/dotgen/dotinit.c:dot_cleanup_node (free_list)
232
225
  */
233
226
  function clearFastGraphLists(n: Node): void {
@@ -248,7 +241,6 @@ function clearFastGraphLists(n: Node): void {
248
241
  export function dotInitNodeEdge(g: Graph): void {
249
242
  for (const n of nodesInSeq(g)) {
250
243
  commonInitNode(n, g);
251
- clearFastGraphLists(n); // C's alloc_elist does not keep the lists it replaces
252
244
  dotInitNode(n);
253
245
  }
254
246
  const measurer = g.root.info.gvc?.textMeasurer;
@@ -291,35 +283,6 @@ export function removeFill(g: Graph): void {
291
283
  // dotCleanup
292
284
  // ---------------------------------------------------------------------------
293
285
 
294
- /**
295
- * The label frees shared by every engine's per-edge cleanup.
296
- * @see lib/common/utils.c:gv_cleanup_edge
297
- */
298
- export function gvCleanupEdgeLabels(e: Edge): void {
299
- e.info.label = undefined;
300
- e.info.xlabel = undefined;
301
- e.info.head_label = undefined;
302
- e.info.tail_label = undefined;
303
- }
304
-
305
- /**
306
- * The label frees shared by every non-dot engine's per-node cleanup.
307
- * @see lib/common/utils.c:gv_cleanup_node
308
- */
309
- export function gvCleanupNodeLabels(n: Node): void {
310
- n.info.label = undefined;
311
- n.info.xlabel = undefined;
312
- }
313
-
314
- /**
315
- * Frees non-root subgraph labels, recursing into every subgraph first.
316
- * @see lib/dotgen/dotinit.c:dot_cleanup_graph
317
- */
318
- function dotCleanupGraph(g: Graph): void {
319
- for (const subg of g.subgraphs.values()) dotCleanupGraph(subg);
320
- if (g !== g.root) g.info.label = undefined;
321
- }
322
-
323
286
  /**
324
287
  * Clears all edge lists and linked-list pointers from nodes in the fast-graph,
325
288
  * releasing layout state without destroying the underlying graph structure.
@@ -329,9 +292,8 @@ function dotCleanupGraph(g: Graph): void {
329
292
  * @see lib/dotgen/dotinit.c:dot_cleanup
330
293
  */
331
294
  export function dotCleanup(g: Graph): void {
332
- for (const e of g.edges) gvCleanupEdgeLabels(e); // gv_cleanup_edge (all out-edges)
333
- for (const n of g.nodes.values()) gvCleanupNodeLabels(n); // dot_cleanup_node
334
- dotCleanupGraph(g);
295
+ // gv_cleanup_edge, dot_cleanup_node, dot_cleanup_graph: labels go at the next
296
+ // layout (layout-reset.ts).
335
297
  let n: Node | undefined = g.info.nlist;
336
298
  while (n !== undefined) {
337
299
  const next: Node | undefined = n.info.next;
@@ -194,7 +194,7 @@ function buildFlatAux(g: Graph, edges: Edge[], cnt: number): FlatAux {
194
194
  if (hvye === null && isPortless(orig)) hvye = auxe;
195
195
  }
196
196
  if (hvye === null) { hvye = new EdgeClass(auxt, auxh, ''); auxg.edges.push(hvye); }
197
- hvye.info.weight = 10000;
197
+ hvye.attrs.set('weight', '10000');
198
198
  return { auxg, auxt, auxh, alg };
199
199
  }
200
200
 
@@ -236,6 +236,9 @@ function repositionFlatAux(g: Graph, edges: Edge[], aux: FlatAux): void {
236
236
  }
237
237
  }
238
238
 
239
+ const transformArrowOps = (ops: ArrowDrawOp[], del: Point, flip: boolean): ArrowDrawOp[] =>
240
+ ops.map(op => mapArrowOpPoints(op, p => transformf(p, del, flip)));
241
+
239
242
  /** Transform the aux edge's head-arrow draw-ops onto the original edge.
240
243
  * C regenerates the arrowhead at emit time from the spline's eflag/ep; the port
241
244
  * pre-stashes the ops during routing. A reversed back-edge clone
@@ -245,16 +248,11 @@ function repositionFlatAux(g: Graph, edges: Edge[], aux: FlatAux): void {
245
248
  * but `headArrowOps` is absent (e.g. #241_0 `3:sw->2:se`).
246
249
  * @see lib/dotgen/dotsplines.c:make_flat_adj_edges */
247
250
  function copyFlatArrow(orig: Edge, auxe: Edge, del: Point, flip: boolean): void {
248
- const xf = (ops: ArrowDrawOp[]): ArrowDrawOp[] =>
249
- ops.map(op => mapArrowOpPoints(op, p => transformf(p, del, flip)));
251
+ const xf = (ops: ArrowDrawOp[]): ArrowDrawOp[] => transformArrowOps(ops, del, flip);
250
252
  const eflag = auxe.info.spl?.list[0]?.eflag;
251
- // Natural head: the aux head ops; reversed-clone fallback: the tail ops stand
252
- // in for the head when the swapped spline carries eflag but no head ops were
253
- // stashed (#241_0 `3:sw->2:se`).
254
253
  const head = auxe.info.headArrowOps ?? (eflag ? auxe.info.tailArrowOps : undefined);
255
254
  if (head !== undefined) orig.info.headArrowOps = xf(head);
256
- // Natural tail arrow (dir=both / dir=back), unless the tail ops were already
257
- // consumed as the head above (reversed clone: no head ops + eflag).
255
+ // Tail arrow (dir=both / dir=back), unless consumed as the head above.
258
256
  const tailConsumed = auxe.info.headArrowOps === undefined && eflag;
259
257
  if (auxe.info.tailArrowOps !== undefined && !tailConsumed) {
260
258
  orig.info.tailArrowOps = xf(auxe.info.tailArrowOps);
@@ -275,16 +273,18 @@ function copyFlatLabel(orig: Edge, auxe: Edge, del: Point, flip: boolean, g: Gra
275
273
  function copyOneFlatSpline(orig: Edge, auxe: Edge, del: Point, flip: boolean, g: Graph): void {
276
274
  const auxbz = auxe.info.spl?.list[0];
277
275
  if (auxbz === undefined) return;
278
- // Copy bz.size points, not list.length: clip lowers `size` below the
279
- // over-allocated `list` (e.g. an arrow-clipped head drops 7→4); emitting
280
- // list.length would append the unclipped tail of the spline. @see the
281
- // "emit uses bz.size not list.length" hazard (dotsplines.c install).
276
+ // Copy bz.size points, not list.length: clip lowers `size` below the over-allocated
277
+ // `list` (an arrow-clipped head drops 7→4); list.length would append the unclipped
278
+ // tail. @see the "emit uses bz.size not list.length" hazard (dotsplines.c install).
282
279
  const sz = auxbz.size;
283
280
  const bz = newSpline(orig, sz);
284
281
  bz.sflag = auxbz.sflag;
285
282
  bz.eflag = auxbz.eflag;
286
283
  bz.sp = transformf(auxbz.sp, del, flip);
287
284
  bz.ep = transformf(auxbz.ep, del, flip);
285
+ // C draws a bezier's arrows from its own sp/ep, at emit: a later layout may append.
286
+ if (auxbz.sArrowOps) bz.sArrowOps = transformArrowOps(auxbz.sArrowOps, del, flip);
287
+ if (auxbz.eArrowOps) bz.eArrowOps = transformArrowOps(auxbz.eArrowOps, del, flip);
288
288
  for (let j = 0; j < sz; j++) bz.list[j] = transformf(auxbz.list[j], del, flip);
289
289
  // Grow the graph bb by each transformed bezier segment. @see dotsplines.c:1270
290
290
  const bb = g.info.bb;
Binary file
@@ -14,7 +14,6 @@
14
14
  */
15
15
 
16
16
  import type { Graph } from '../../model/graph.js';
17
- import { gvCleanupEdgeLabels, gvCleanupNodeLabels } from '../dot/init.js';
18
17
  import type { Node } from '../../model/node.js';
19
18
  import type { Edge } from '../../model/edge.js';
20
19
  import { commonInitNodeEdge, lateDouble, layoutMeasurer } from '../../common/nodeinit.js';
@@ -100,28 +99,14 @@ export function fdpInitNodeEdge(g: Graph): void {
100
99
  initialPositions(g);
101
100
  }
102
101
 
103
- /**
104
- * Frees each cluster label, recursively.
105
- * @see lib/fdpgen/fdpinit.c:cleanup_subgs
106
- */
107
- function fdpCleanupSubgs(g: Graph): void {
108
- const nClust = g.info.n_cluster ?? 0;
109
- for (let i = 1; i <= nClust; i++) {
110
- const subg = g.info.clust![i - 1];
111
- subg.info.label = undefined;
112
- fdpCleanupSubgs(subg);
113
- }
114
- }
115
-
116
102
  /**
117
103
  * Release fdp layout state (gv_cleanup analogue; the render pipeline
118
104
  * runs before cleanup per the M2 ordering fix).
119
105
  * @see lib/fdpgen/fdpinit.c:fdp_cleanup
120
106
  */
121
107
  export function fdpCleanup(g: Graph): void {
122
- for (const e of g.edges) gvCleanupEdgeLabels(e); // gv_cleanup_edge: per-node agfstout, all edges of root g
123
- for (const n of g.nodes.values()) gvCleanupNodeLabels(n); // gv_cleanup_node
124
- fdpCleanupSubgs(g);
108
+ // gv_cleanup_edge, gv_cleanup_node, cleanup_subgs: labels go at the next layout
109
+ // (layout-reset.ts).
125
110
  for (const n of g.nodes.values()) {
126
111
  n.info.alg = undefined;
127
112
  n.info.pos = undefined;
@@ -0,0 +1,33 @@
1
+ graph G {
2
+ graph [bb="0,0,143.05,175.14",
3
+ dim=3,
4
+ dimen=3,
5
+ model=circuit
6
+ ];
7
+ node [label="\N"];
8
+ a [height=0.5,
9
+ pos="64.152,124.48,8.9018",
10
+ width=0.75];
11
+ b [height=0.5,
12
+ pos="88.785,157.14,-11.976",
13
+ width=0.75];
14
+ a -- b [pos="76.469,140.81 76.565,140.94 76.661,141.06 76.757,141.19"];
15
+ c [height=0.5,
16
+ pos="100,128.52,21.795",
17
+ width=0.75];
18
+ a -- c [pos="90.955,127.5 91.117,127.52 91.278,127.54 91.437,127.56"];
19
+ b -- c [pos="95.697,139.5 95.733,139.41 95.769,139.32 95.805,139.23"];
20
+ d [height=0.5,
21
+ pos="116.05,80.993,16.095",
22
+ width=0.75];
23
+ c -- d [pos="106.07,110.55 107.35,106.77 108.7,102.77 109.98,98.988"];
24
+ e [height=0.5,
25
+ pos="68.234,74.355,-4.1283",
26
+ width=0.75];
27
+ d -- e [pos="89.348,77.286 89.262,77.274 89.176,77.262 89.091,77.25"];
28
+ e -- a [pos="66.738,92.736 66.383,97.094 66.004,101.74 65.649,106.1"];
29
+ f [height=0.5,
30
+ pos="27,18,-30.687",
31
+ width=0.75];
32
+ e -- f [pos="56.308,58.055 50.885,50.643 44.48,41.89 39.043,34.459"];
33
+ }
@@ -0,0 +1,12 @@
1
+ graph G {
2
+ dim=3;
3
+ dimen=3;
4
+ model=circuit;
5
+ a -- b;
6
+ b -- c;
7
+ c -- d;
8
+ d -- e;
9
+ e -- a;
10
+ a -- c;
11
+ e -- f;
12
+ }
@@ -0,0 +1,54 @@
1
+ graph G {
2
+ graph [_draw_="c 9 -#fffffe00 C 7 -#ffffff P 4 0 0 0 175.14 143.05 175.14 143.05 0 ",
3
+ bb="0,0,143.05,175.14",
4
+ dim=3,
5
+ dimen=3,
6
+ model=circuit,
7
+ xdotversion=1.7
8
+ ];
9
+ node [label="\N"];
10
+ a [_draw_="c 7 -#000000 e 64.15 124.48 27 18 ",
11
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 64.15 120.28 0 6.21 1 -a ",
12
+ height=0.5,
13
+ pos="64.152,124.48,8.9018",
14
+ width=0.75];
15
+ b [_draw_="c 7 -#000000 e 88.78 157.14 27 18 ",
16
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 88.78 152.94 0 7 1 -b ",
17
+ height=0.5,
18
+ pos="88.785,157.14,-11.976",
19
+ width=0.75];
20
+ a -- b [_draw_="c 7 -#000000 B 4 76.47 140.81 76.56 140.94 76.66 141.06 76.76 141.19 ",
21
+ pos="76.469,140.81 76.565,140.94 76.661,141.06 76.757,141.19"];
22
+ c [_draw_="c 7 -#000000 e 100 128.52 27 18 ",
23
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 100 124.32 0 6.21 1 -c ",
24
+ height=0.5,
25
+ pos="100,128.52,21.795",
26
+ width=0.75];
27
+ a -- c [_draw_="c 7 -#000000 B 4 90.95 127.5 91.12 127.52 91.28 127.54 91.44 127.56 ",
28
+ pos="90.955,127.5 91.117,127.52 91.278,127.54 91.437,127.56"];
29
+ b -- c [_draw_="c 7 -#000000 B 4 95.7 139.5 95.73 139.41 95.77 139.32 95.8 139.23 ",
30
+ pos="95.697,139.5 95.733,139.41 95.769,139.32 95.805,139.23"];
31
+ d [_draw_="c 7 -#000000 e 116.05 80.99 27 18 ",
32
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 116.05 76.79 0 7 1 -d ",
33
+ height=0.5,
34
+ pos="116.05,80.993,16.095",
35
+ width=0.75];
36
+ c -- d [_draw_="c 7 -#000000 B 4 106.07 110.55 107.35 106.77 108.7 102.77 109.98 98.99 ",
37
+ pos="106.07,110.55 107.35,106.77 108.7,102.77 109.98,98.988"];
38
+ e [_draw_="c 7 -#000000 e 68.23 74.36 27 18 ",
39
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 68.23 70.16 0 6.21 1 -e ",
40
+ height=0.5,
41
+ pos="68.234,74.355,-4.1283",
42
+ width=0.75];
43
+ d -- e [_draw_="c 7 -#000000 B 4 89.35 77.29 89.26 77.27 89.18 77.26 89.09 77.25 ",
44
+ pos="89.348,77.286 89.262,77.274 89.176,77.262 89.091,77.25"];
45
+ e -- a [_draw_="c 7 -#000000 B 4 66.74 92.74 66.38 97.09 66 101.74 65.65 106.1 ",
46
+ pos="66.738,92.736 66.383,97.094 66.004,101.74 65.649,106.1"];
47
+ f [_draw_="c 7 -#000000 e 27 18 27 18 ",
48
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 27 13.8 0 4.66 1 -f ",
49
+ height=0.5,
50
+ pos="27,18,-30.687",
51
+ width=0.75];
52
+ e -- f [_draw_="c 7 -#000000 B 4 56.31 58.05 50.88 50.64 44.48 41.89 39.04 34.46 ",
53
+ pos="56.308,58.055 50.885,50.643 44.48,41.89 39.043,34.459"];
54
+ }
@@ -0,0 +1,32 @@
1
+ graph G {
2
+ graph [bb="0,0,106.19,71.931",
3
+ dim=11,
4
+ dimen=11
5
+ ];
6
+ node [label="\N"];
7
+ a [height=0.5,
8
+ pos="27.613,50.111,-6.6209,3.7861,15.307,-25.234,1.9897,3.3857,14.819,-12.491",
9
+ width=0.75];
10
+ b [height=0.5,
11
+ pos="27,53.931,-46.364,-37.009,43.418,-53.139,-1.4019,-9.0868,5.2877,-25.047",
12
+ width=0.75];
13
+ a -- b [pos="27.026,53.767 27.018,53.819 27.011,53.86 27.007,53.888"];
14
+ c [height=0.5,
15
+ pos="54.209,31.362,-35.912,-38.546,21.75,-23.788,-7.5048,6.9928,-28.042,8.9821",
16
+ width=0.75];
17
+ a -- c [pos="46.373,36.886 46.511,36.789 46.647,36.693 46.783,36.597"];
18
+ b -- c [pos="44.077,39.766 44.163,39.695 44.248,39.624 44.333,39.554"];
19
+ d [height=0.5,
20
+ pos="79.193,18,-2.9063,-18.419,-14.051,24.878,-7.2723,4.9672,-34.63,25.722",
21
+ width=0.75];
22
+ c -- d [pos="75.719,19.858 75.85,19.788 75.978,19.719 76.104,19.652"];
23
+ e [height=0.5,
24
+ pos="52.815,36.635,26.299,24.207,-20.22,23.382,2.8304,0.66155,8.7884,3.7427",
25
+ width=0.75];
26
+ d -- e [pos="60.304,31.345 60.171,31.438 60.04,31.531 59.91,31.623"];
27
+ e -- a [pos="31.551,48.005 31.403,48.084 31.259,48.162 31.117,48.237"];
28
+ f [height=0.5,
29
+ pos="55.075,37.375,65.505,65.981,-46.203,53.901,11.359,-6.9205,33.776,-0.90883",
30
+ width=0.75];
31
+ e -- f [pos="54.978,37.343 55.009,37.353 55.033,37.361 55.05,37.366"];
32
+ }
@@ -0,0 +1,11 @@
1
+ graph G {
2
+ dim=11;
3
+ dimen=11;
4
+ a -- b;
5
+ b -- c;
6
+ c -- d;
7
+ d -- e;
8
+ e -- a;
9
+ a -- c;
10
+ e -- f;
11
+ }
@@ -0,0 +1,53 @@
1
+ graph G {
2
+ graph [_draw_="c 9 -#fffffe00 C 7 -#ffffff P 4 0 0 0 71.93 106.19 71.93 106.19 0 ",
3
+ bb="0,0,106.19,71.931",
4
+ dim=11,
5
+ dimen=11,
6
+ xdotversion=1.7
7
+ ];
8
+ node [label="\N"];
9
+ a [_draw_="c 7 -#000000 e 27.61 50.11 27 18 ",
10
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 27.61 45.91 0 6.21 1 -a ",
11
+ height=0.5,
12
+ pos="27.613,50.111,-6.6209,3.7861,15.307,-25.234,1.9897,3.3857,14.819,-12.491",
13
+ width=0.75];
14
+ b [_draw_="c 7 -#000000 e 27 53.93 27 18 ",
15
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 27 49.73 0 7 1 -b ",
16
+ height=0.5,
17
+ pos="27,53.931,-46.364,-37.009,43.418,-53.139,-1.4019,-9.0868,5.2877,-25.047",
18
+ width=0.75];
19
+ a -- b [_draw_="c 7 -#000000 B 4 27.03 53.77 27.02 53.82 27.01 53.86 27.01 53.89 ",
20
+ pos="27.026,53.767 27.018,53.819 27.011,53.86 27.007,53.888"];
21
+ c [_draw_="c 7 -#000000 e 54.21 31.36 27 18 ",
22
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 54.21 27.16 0 6.21 1 -c ",
23
+ height=0.5,
24
+ pos="54.209,31.362,-35.912,-38.546,21.75,-23.788,-7.5048,6.9928,-28.042,8.9821",
25
+ width=0.75];
26
+ a -- c [_draw_="c 7 -#000000 B 4 46.37 36.89 46.51 36.79 46.65 36.69 46.78 36.6 ",
27
+ pos="46.373,36.886 46.511,36.789 46.647,36.693 46.783,36.597"];
28
+ b -- c [_draw_="c 7 -#000000 B 4 44.08 39.77 44.16 39.7 44.25 39.62 44.33 39.55 ",
29
+ pos="44.077,39.766 44.163,39.695 44.248,39.624 44.333,39.554"];
30
+ d [_draw_="c 7 -#000000 e 79.19 18 27 18 ",
31
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 79.19 13.8 0 7 1 -d ",
32
+ height=0.5,
33
+ pos="79.193,18,-2.9063,-18.419,-14.051,24.878,-7.2723,4.9672,-34.63,25.722",
34
+ width=0.75];
35
+ c -- d [_draw_="c 7 -#000000 B 4 75.72 19.86 75.85 19.79 75.98 19.72 76.1 19.65 ",
36
+ pos="75.719,19.858 75.85,19.788 75.978,19.719 76.104,19.652"];
37
+ e [_draw_="c 7 -#000000 e 52.82 36.64 27 18 ",
38
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 52.82 32.44 0 6.21 1 -e ",
39
+ height=0.5,
40
+ pos="52.815,36.635,26.299,24.207,-20.22,23.382,2.8304,0.66155,8.7884,3.7427",
41
+ width=0.75];
42
+ d -- e [_draw_="c 7 -#000000 B 4 60.3 31.34 60.17 31.44 60.04 31.53 59.91 31.62 ",
43
+ pos="60.304,31.345 60.171,31.438 60.04,31.531 59.91,31.623"];
44
+ e -- a [_draw_="c 7 -#000000 B 4 31.55 48.01 31.4 48.08 31.26 48.16 31.12 48.24 ",
45
+ pos="31.551,48.005 31.403,48.084 31.259,48.162 31.117,48.237"];
46
+ f [_draw_="c 7 -#000000 e 55.08 37.37 27 18 ",
47
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 55.08 33.17 0 4.66 1 -f ",
48
+ height=0.5,
49
+ pos="55.075,37.375,65.505,65.981,-46.203,53.901,11.359,-6.9205,33.776,-0.90883",
50
+ width=0.75];
51
+ e -- f [_draw_="c 7 -#000000 B 4 54.98 37.34 55.01 37.35 55.03 37.36 55.05 37.37 ",
52
+ pos="54.978,37.343 55.009,37.353 55.033,37.361 55.05,37.366"];
53
+ }
@@ -0,0 +1,32 @@
1
+ graph G {
2
+ graph [bb="0,0,162.6,240.7",
3
+ dim=3,
4
+ dimen=3
5
+ ];
6
+ node [label="\N"];
7
+ a [height=0.5,
8
+ pos="52.001,159.72,-7.2571",
9
+ width=0.75];
10
+ b [height=0.5,
11
+ pos="83.811,222.7,-23.86",
12
+ width=0.75];
13
+ a -- b [pos="60.693,176.93 65.182,185.82 70.643,196.63 75.13,205.51"];
14
+ c [height=0.5,
15
+ pos="123.54,179.17,18.417",
16
+ width=0.75];
17
+ a -- c [pos="77.424,166.63 84.171,168.47 91.456,170.45 98.198,172.28"];
18
+ b -- c [pos="98.154,206.99 101.8,202.99 105.71,198.7 109.35,194.72"];
19
+ d [height=0.5,
20
+ pos="135.6,101.36,27.1",
21
+ width=0.75];
22
+ c -- d [pos="126.34,161.12 128.27,148.64 130.84,132.09 132.78,119.58"];
23
+ e [height=0.5,
24
+ pos="63.798,81.898,0.43985",
25
+ width=0.75];
26
+ d -- e [pos="110.49,94.551 103.53,92.666 95.98,90.62 89.018,88.733"];
27
+ e -- a [pos="61.062,99.947 59.17,112.43 56.661,128.98 54.763,141.5"];
28
+ f [height=0.5,
29
+ pos="27,18,-14.84",
30
+ width=0.75];
31
+ e -- f [pos="53.937,64.775 48.657,55.607 42.172,44.346 36.888,35.171"];
32
+ }
@@ -0,0 +1,11 @@
1
+ graph G {
2
+ dim=3;
3
+ dimen=3;
4
+ a -- b;
5
+ b -- c;
6
+ c -- d;
7
+ d -- e;
8
+ e -- a;
9
+ a -- c;
10
+ e -- f;
11
+ }
@@ -0,0 +1,53 @@
1
+ graph G {
2
+ graph [_draw_="c 9 -#fffffe00 C 7 -#ffffff P 4 0 0 0 240.7 162.6 240.7 162.6 0 ",
3
+ bb="0,0,162.6,240.7",
4
+ dim=3,
5
+ dimen=3,
6
+ xdotversion=1.7
7
+ ];
8
+ node [label="\N"];
9
+ a [_draw_="c 7 -#000000 e 52 159.72 27 18 ",
10
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 52 155.52 0 6.21 1 -a ",
11
+ height=0.5,
12
+ pos="52.001,159.72,-7.2571",
13
+ width=0.75];
14
+ b [_draw_="c 7 -#000000 e 83.81 222.7 27 18 ",
15
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 83.81 218.5 0 7 1 -b ",
16
+ height=0.5,
17
+ pos="83.811,222.7,-23.86",
18
+ width=0.75];
19
+ a -- b [_draw_="c 7 -#000000 B 4 60.69 176.93 65.18 185.82 70.64 196.63 75.13 205.51 ",
20
+ pos="60.693,176.93 65.182,185.82 70.643,196.63 75.13,205.51"];
21
+ c [_draw_="c 7 -#000000 e 123.54 179.17 27 18 ",
22
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 123.54 174.97 0 6.21 1 -c ",
23
+ height=0.5,
24
+ pos="123.54,179.17,18.417",
25
+ width=0.75];
26
+ a -- c [_draw_="c 7 -#000000 B 4 77.42 166.63 84.17 168.47 91.46 170.45 98.2 172.28 ",
27
+ pos="77.424,166.63 84.171,168.47 91.456,170.45 98.198,172.28"];
28
+ b -- c [_draw_="c 7 -#000000 B 4 98.15 206.99 101.8 202.99 105.71 198.7 109.35 194.72 ",
29
+ pos="98.154,206.99 101.8,202.99 105.71,198.7 109.35,194.72"];
30
+ d [_draw_="c 7 -#000000 e 135.6 101.36 27 18 ",
31
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 135.6 97.16 0 7 1 -d ",
32
+ height=0.5,
33
+ pos="135.6,101.36,27.1",
34
+ width=0.75];
35
+ c -- d [_draw_="c 7 -#000000 B 4 126.34 161.12 128.27 148.64 130.84 132.09 132.78 119.58 ",
36
+ pos="126.34,161.12 128.27,148.64 130.84,132.09 132.78,119.58"];
37
+ e [_draw_="c 7 -#000000 e 63.8 81.9 27 18 ",
38
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 63.8 77.7 0 6.21 1 -e ",
39
+ height=0.5,
40
+ pos="63.798,81.898,0.43985",
41
+ width=0.75];
42
+ d -- e [_draw_="c 7 -#000000 B 4 110.49 94.55 103.53 92.67 95.98 90.62 89.02 88.73 ",
43
+ pos="110.49,94.551 103.53,92.666 95.98,90.62 89.018,88.733"];
44
+ e -- a [_draw_="c 7 -#000000 B 4 61.06 99.95 59.17 112.43 56.66 128.98 54.76 141.5 ",
45
+ pos="61.062,99.947 59.17,112.43 56.661,128.98 54.763,141.5"];
46
+ f [_draw_="c 7 -#000000 e 27 18 27 18 ",
47
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 27 13.8 0 4.66 1 -f ",
48
+ height=0.5,
49
+ pos="27,18,-14.84",
50
+ width=0.75];
51
+ e -- f [_draw_="c 7 -#000000 B 4 53.94 64.77 48.66 55.61 42.17 44.35 36.89 35.17 ",
52
+ pos="53.937,64.775 48.657,55.607 42.172,44.346 36.888,35.171"];
53
+ }
@@ -0,0 +1,31 @@
1
+ graph G {
2
+ graph [bb="0,0,162.6,240.7",
3
+ dim=3
4
+ ];
5
+ node [label="\N"];
6
+ a [height=0.5,
7
+ pos="52.001,159.72",
8
+ width=0.75];
9
+ b [height=0.5,
10
+ pos="83.811,222.7",
11
+ width=0.75];
12
+ a -- b [pos="60.693,176.93 65.182,185.82 70.643,196.63 75.13,205.51"];
13
+ c [height=0.5,
14
+ pos="123.54,179.17",
15
+ width=0.75];
16
+ a -- c [pos="77.424,166.63 84.171,168.47 91.456,170.45 98.198,172.28"];
17
+ b -- c [pos="98.154,206.99 101.8,202.99 105.71,198.7 109.35,194.72"];
18
+ d [height=0.5,
19
+ pos="135.6,101.36",
20
+ width=0.75];
21
+ c -- d [pos="126.34,161.12 128.27,148.64 130.84,132.09 132.78,119.58"];
22
+ e [height=0.5,
23
+ pos="63.798,81.898",
24
+ width=0.75];
25
+ d -- e [pos="110.49,94.551 103.53,92.666 95.98,90.62 89.018,88.733"];
26
+ e -- a [pos="61.062,99.947 59.17,112.43 56.661,128.98 54.763,141.5"];
27
+ f [height=0.5,
28
+ pos="27,18",
29
+ width=0.75];
30
+ e -- f [pos="53.937,64.775 48.657,55.607 42.172,44.346 36.888,35.171"];
31
+ }
@@ -0,0 +1,10 @@
1
+ graph G {
2
+ dim=3;
3
+ a -- b;
4
+ b -- c;
5
+ c -- d;
6
+ d -- e;
7
+ e -- a;
8
+ a -- c;
9
+ e -- f;
10
+ }
File without changes
@@ -0,0 +1,52 @@
1
+ graph G {
2
+ graph [_draw_="c 9 -#fffffe00 C 7 -#ffffff P 4 0 0 0 240.7 162.6 240.7 162.6 0 ",
3
+ bb="0,0,162.6,240.7",
4
+ dim=3,
5
+ xdotversion=1.7
6
+ ];
7
+ node [label="\N"];
8
+ a [_draw_="c 7 -#000000 e 52 159.72 27 18 ",
9
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 52 155.52 0 6.21 1 -a ",
10
+ height=0.5,
11
+ pos="52.001,159.72",
12
+ width=0.75];
13
+ b [_draw_="c 7 -#000000 e 83.81 222.7 27 18 ",
14
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 83.81 218.5 0 7 1 -b ",
15
+ height=0.5,
16
+ pos="83.811,222.7",
17
+ width=0.75];
18
+ a -- b [_draw_="c 7 -#000000 B 4 60.69 176.93 65.18 185.82 70.64 196.63 75.13 205.51 ",
19
+ pos="60.693,176.93 65.182,185.82 70.643,196.63 75.13,205.51"];
20
+ c [_draw_="c 7 -#000000 e 123.54 179.17 27 18 ",
21
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 123.54 174.97 0 6.21 1 -c ",
22
+ height=0.5,
23
+ pos="123.54,179.17",
24
+ width=0.75];
25
+ a -- c [_draw_="c 7 -#000000 B 4 77.42 166.63 84.17 168.47 91.46 170.45 98.2 172.28 ",
26
+ pos="77.424,166.63 84.171,168.47 91.456,170.45 98.198,172.28"];
27
+ b -- c [_draw_="c 7 -#000000 B 4 98.15 206.99 101.8 202.99 105.71 198.7 109.35 194.72 ",
28
+ pos="98.154,206.99 101.8,202.99 105.71,198.7 109.35,194.72"];
29
+ d [_draw_="c 7 -#000000 e 135.6 101.36 27 18 ",
30
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 135.6 97.16 0 7 1 -d ",
31
+ height=0.5,
32
+ pos="135.6,101.36",
33
+ width=0.75];
34
+ c -- d [_draw_="c 7 -#000000 B 4 126.34 161.12 128.27 148.64 130.84 132.09 132.78 119.58 ",
35
+ pos="126.34,161.12 128.27,148.64 130.84,132.09 132.78,119.58"];
36
+ e [_draw_="c 7 -#000000 e 63.8 81.9 27 18 ",
37
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 63.8 77.7 0 6.21 1 -e ",
38
+ height=0.5,
39
+ pos="63.798,81.898",
40
+ width=0.75];
41
+ d -- e [_draw_="c 7 -#000000 B 4 110.49 94.55 103.53 92.67 95.98 90.62 89.02 88.73 ",
42
+ pos="110.49,94.551 103.53,92.666 95.98,90.62 89.018,88.733"];
43
+ e -- a [_draw_="c 7 -#000000 B 4 61.06 99.95 59.17 112.43 56.66 128.98 54.76 141.5 ",
44
+ pos="61.062,99.947 59.17,112.43 56.661,128.98 54.763,141.5"];
45
+ f [_draw_="c 7 -#000000 e 27 18 27 18 ",
46
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 27 13.8 0 4.66 1 -f ",
47
+ height=0.5,
48
+ pos="27,18",
49
+ width=0.75];
50
+ e -- f [_draw_="c 7 -#000000 B 4 53.94 64.77 48.66 55.61 42.17 44.35 36.89 35.17 ",
51
+ pos="53.937,64.775 48.657,55.607 42.172,44.346 36.888,35.171"];
52
+ }