@knowvah/dot-engine 2.10.3 → 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 (332) 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 -372
  6. package/dist/index.js.map +4 -4
  7. package/dist/layout/circo/circular.d.ts.map +1 -1
  8. package/dist/layout/dot/edge-route-helpers.d.ts +6 -1
  9. package/dist/layout/dot/edge-route-helpers.d.ts.map +1 -1
  10. package/dist/layout/dot/edge-route-rank.d.ts +4 -1
  11. package/dist/layout/dot/edge-route-rank.d.ts.map +1 -1
  12. package/dist/layout/dot/index.d.ts.map +1 -1
  13. package/dist/layout/dot/init.d.ts.map +1 -1
  14. package/dist/layout/fdp/cluster-edges.d.ts +11 -0
  15. package/dist/layout/fdp/cluster-edges.d.ts.map +1 -1
  16. package/dist/layout/neato/closest.d.ts +20 -0
  17. package/dist/layout/neato/closest.d.ts.map +1 -0
  18. package/dist/layout/neato/constrained-majorization.d.ts +13 -0
  19. package/dist/layout/neato/constrained-majorization.d.ts.map +1 -1
  20. package/dist/layout/neato/embed-graph.d.ts +20 -0
  21. package/dist/layout/neato/embed-graph.d.ts.map +1 -0
  22. package/dist/layout/neato/fdp-adjust.d.ts.map +1 -1
  23. package/dist/layout/neato/index.d.ts.map +1 -1
  24. package/dist/layout/neato/init-dim.d.ts +54 -0
  25. package/dist/layout/neato/init-dim.d.ts.map +1 -0
  26. package/dist/layout/neato/init.d.ts +1 -11
  27. package/dist/layout/neato/init.d.ts.map +1 -1
  28. package/dist/layout/neato/kk.d.ts +4 -2
  29. package/dist/layout/neato/kk.d.ts.map +1 -1
  30. package/dist/layout/neato/matrix-ops-dense.d.ts +34 -0
  31. package/dist/layout/neato/matrix-ops-dense.d.ts.map +1 -0
  32. package/dist/layout/neato/pca.d.ts +14 -0
  33. package/dist/layout/neato/pca.d.ts.map +1 -0
  34. package/dist/layout/neato/sgd.d.ts +2 -3
  35. package/dist/layout/neato/sgd.d.ts.map +1 -1
  36. package/dist/layout/neato/start.d.ts +5 -5
  37. package/dist/layout/neato/start.d.ts.map +1 -1
  38. package/dist/layout/neato/stress-kernel.d.ts +10 -2
  39. package/dist/layout/neato/stress-kernel.d.ts.map +1 -1
  40. package/dist/layout/neato/stress-subspace.d.ts +39 -0
  41. package/dist/layout/neato/stress-subspace.d.ts.map +1 -0
  42. package/dist/layout/neato/vpsc-adjust.d.ts.map +1 -1
  43. package/dist/layout/pack/ccomps.d.ts +4 -2
  44. package/dist/layout/pack/ccomps.d.ts.map +1 -1
  45. package/dist/layout/sfdp/index.d.ts.map +1 -1
  46. package/dist/layout/sfdp/init.d.ts +6 -7
  47. package/dist/layout/sfdp/init.d.ts.map +1 -1
  48. package/dist/layout/twopi/circle.d.ts.map +1 -1
  49. package/dist/layout/twopi/index.d.ts.map +1 -1
  50. package/dist/render/dot/attrs.d.ts +7 -0
  51. package/dist/render/dot/attrs.d.ts.map +1 -1
  52. package/dist/render.js +1574 -755
  53. package/dist/render.js.map +4 -4
  54. package/package.json +4 -4
  55. package/src/gvc/__fixtures__/rerender/abom-shift-pack.dot.plain.nofree.1 +20 -0
  56. package/src/gvc/__fixtures__/rerender/abom-shift-pack.dot.plain.nofree.2 +20 -0
  57. package/src/gvc/__fixtures__/rerender/abom-shift-pack.dot.plain.nofree.3 +20 -0
  58. package/src/gvc/__fixtures__/rerender/abom-shift-pack.gv +1 -0
  59. package/src/gvc/__fixtures__/rerender/abom-shift-parity.dot.plain.nofree.1 +22 -0
  60. package/src/gvc/__fixtures__/rerender/abom-shift-parity.dot.plain.nofree.2 +22 -0
  61. package/src/gvc/__fixtures__/rerender/abom-shift-parity.dot.plain.nofree.3 +22 -0
  62. package/src/gvc/__fixtures__/rerender/abom-shift-parity.gv +1 -0
  63. package/src/gvc/__fixtures__/rerender/abom-shift.dot.plain.nofree.1 +13 -0
  64. package/src/gvc/__fixtures__/rerender/abom-shift.dot.plain.nofree.2 +13 -0
  65. package/src/gvc/__fixtures__/rerender/abom-shift.dot.plain.nofree.3 +13 -0
  66. package/src/gvc/__fixtures__/rerender/abom-shift.gv +1 -0
  67. package/src/gvc/__fixtures__/rerender/cluster-edge-splines.fdp.plain.1 +10 -0
  68. package/src/gvc/__fixtures__/rerender/cluster-edge-splines.fdp.plain.2 +11 -0
  69. package/src/gvc/__fixtures__/rerender/cluster-edge-splines.gv +9 -0
  70. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.dot.1 +40 -0
  71. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.dot.2 +40 -0
  72. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.plain.noaddr.1 +15 -0
  73. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.plain.noaddr.2 +17 -0
  74. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-plain.1 +40 -0
  75. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-plain.2 +15 -0
  76. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-svg.1 +40 -0
  77. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-svg.2 +99 -0
  78. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-json-json.1 +489 -0
  79. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-json-json.2 +503 -0
  80. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-nofree-dot-svg.1 +40 -0
  81. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-nofree-dot-svg.2 +109 -0
  82. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.xdot.1 +69 -0
  83. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.xdot.2 +70 -0
  84. package/src/gvc/__fixtures__/rerender/cluster-edges.gv +15 -0
  85. package/src/gvc/__fixtures__/rerender/fdp-1581.fdp.dot.1 +104 -0
  86. package/src/gvc/__fixtures__/rerender/fdp-1581.fdp.dot.2 +104 -0
  87. package/src/gvc/__fixtures__/rerender/fdp-1581.gv +26 -0
  88. package/src/gvc/__fixtures__/rerender/flat-rev-stale.dot.plain.nofree.1 +34 -0
  89. package/src/gvc/__fixtures__/rerender/flat-rev-stale.dot.plain.nofree.2 +34 -0
  90. package/src/gvc/__fixtures__/rerender/flat-rev-stale.dot.plain.nofree.3 +34 -0
  91. package/src/gvc/__fixtures__/rerender/flat-rev-stale.gv +33 -0
  92. package/src/gvc/__fixtures__/rerender/multi-edge.dot.svg.nofree.1 +181 -0
  93. package/src/gvc/__fixtures__/rerender/multi-edge.dot.svg.nofree.2 +218 -0
  94. package/src/gvc/__fixtures__/rerender/multi-edge.dot.svg.nofree.3 +255 -0
  95. package/src/gvc/__fixtures__/rerender/regen.sh +25 -0
  96. package/src/gvc/context.ts +7 -2
  97. package/src/gvc/emit-xdot.ts +37 -7
  98. package/src/gvc/layout-reset.ts +59 -1
  99. package/src/layout/circo/circular.ts +3 -1
  100. package/src/layout/dot/edge-route-helpers.ts +8 -2
  101. package/src/layout/dot/edge-route-rank.ts +20 -2
  102. package/src/layout/dot/index.ts +17 -2
  103. package/src/layout/dot/init.ts +9 -17
  104. package/src/layout/dot/splines-flat.ts +12 -12
  105. package/src/layout/fdp/cluster-edges.ts +0 -0
  106. package/src/layout/neato/__fixtures__/dim/circuit-dim3.dot +33 -0
  107. package/src/layout/neato/__fixtures__/dim/circuit-dim3.gv +12 -0
  108. package/src/layout/neato/__fixtures__/dim/circuit-dim3.stderr +0 -0
  109. package/src/layout/neato/__fixtures__/dim/circuit-dim3.xdot +54 -0
  110. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.dot +32 -0
  111. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.gv +11 -0
  112. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.stderr +0 -0
  113. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.xdot +53 -0
  114. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.dot +32 -0
  115. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.gv +11 -0
  116. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.stderr +0 -0
  117. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.xdot +53 -0
  118. package/src/layout/neato/__fixtures__/dim/dim3.dot +31 -0
  119. package/src/layout/neato/__fixtures__/dim/dim3.gv +10 -0
  120. package/src/layout/neato/__fixtures__/dim/dim3.stderr +0 -0
  121. package/src/layout/neato/__fixtures__/dim/dim3.xdot +52 -0
  122. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.dot +32 -0
  123. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.gv +11 -0
  124. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.stderr +0 -0
  125. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.xdot +53 -0
  126. package/src/layout/neato/__fixtures__/dim/dimen3.dot +31 -0
  127. package/src/layout/neato/__fixtures__/dim/dimen3.gv +10 -0
  128. package/src/layout/neato/__fixtures__/dim/dimen3.stderr +0 -0
  129. package/src/layout/neato/__fixtures__/dim/dimen3.xdot +52 -0
  130. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.dot +267 -0
  131. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.gv +84 -0
  132. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.stderr +0 -0
  133. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.xdot +468 -0
  134. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.dot +267 -0
  135. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.gv +84 -0
  136. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.stderr +0 -0
  137. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.xdot +468 -0
  138. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.dot +268 -0
  139. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.gv +85 -0
  140. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.stderr +0 -0
  141. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.xdot +469 -0
  142. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.dot +484 -0
  143. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.gv +151 -0
  144. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.stderr +0 -0
  145. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.xdot +852 -0
  146. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.dot +34 -0
  147. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.gv +13 -0
  148. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.stderr +0 -0
  149. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.xdot +55 -0
  150. package/src/layout/neato/__fixtures__/dim/hier-dim3.dot +33 -0
  151. package/src/layout/neato/__fixtures__/dim/hier-dim3.gv +12 -0
  152. package/src/layout/neato/__fixtures__/dim/hier-dim3.stderr +0 -0
  153. package/src/layout/neato/__fixtures__/dim/hier-dim3.xdot +54 -0
  154. package/src/layout/neato/__fixtures__/dim/hier-dim4.dot +33 -0
  155. package/src/layout/neato/__fixtures__/dim/hier-dim4.gv +12 -0
  156. package/src/layout/neato/__fixtures__/dim/hier-dim4.stderr +0 -0
  157. package/src/layout/neato/__fixtures__/dim/hier-dim4.xdot +54 -0
  158. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.dot +32 -0
  159. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.gv +11 -0
  160. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.stderr +0 -0
  161. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.xdot +53 -0
  162. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.dot +34 -0
  163. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.gv +13 -0
  164. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.stderr +0 -0
  165. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.xdot +55 -0
  166. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.dot +37 -0
  167. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.gv +12 -0
  168. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.stderr +0 -0
  169. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.xdot +58 -0
  170. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.dot +141 -0
  171. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.gv +48 -0
  172. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.stderr +1 -0
  173. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.xdot +233 -0
  174. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.dot +21 -0
  175. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.gv +8 -0
  176. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.stderr +1 -0
  177. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.xdot +33 -0
  178. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.dot +23 -0
  179. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.gv +10 -0
  180. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.stderr +1 -0
  181. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.xdot +35 -0
  182. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.dot +23 -0
  183. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.gv +10 -0
  184. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.stderr +1 -0
  185. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.xdot +35 -0
  186. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.dot +26 -0
  187. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.gv +7 -0
  188. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.stderr +0 -0
  189. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.xdot +44 -0
  190. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.dot +28 -0
  191. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.gv +9 -0
  192. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.stderr +0 -0
  193. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.xdot +46 -0
  194. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.dot +48 -0
  195. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.gv +15 -0
  196. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.stderr +0 -0
  197. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.xdot +79 -0
  198. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.dot +56 -0
  199. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.gv +17 -0
  200. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.stderr +0 -0
  201. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.xdot +94 -0
  202. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.dot +47 -0
  203. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.gv +14 -0
  204. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.stderr +0 -0
  205. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.xdot +78 -0
  206. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.dot +34 -0
  207. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.gv +13 -0
  208. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.stderr +0 -0
  209. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.xdot +55 -0
  210. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.dot +34 -0
  211. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.gv +13 -0
  212. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.stderr +0 -0
  213. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.xdot +55 -0
  214. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.dot +34 -0
  215. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.gv +13 -0
  216. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.stderr +0 -0
  217. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.xdot +55 -0
  218. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.dot +15 -0
  219. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.gv +6 -0
  220. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.stderr +0 -0
  221. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.xdot +22 -0
  222. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.dot +33 -0
  223. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.gv +12 -0
  224. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.stderr +0 -0
  225. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.xdot +54 -0
  226. package/src/layout/neato/__fixtures__/dim/kk-dim3.dot +33 -0
  227. package/src/layout/neato/__fixtures__/dim/kk-dim3.gv +12 -0
  228. package/src/layout/neato/__fixtures__/dim/kk-dim3.stderr +0 -0
  229. package/src/layout/neato/__fixtures__/dim/kk-dim3.xdot +54 -0
  230. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.dot +33 -0
  231. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.gv +12 -0
  232. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.stderr +0 -0
  233. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.xdot +54 -0
  234. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.dot +39 -0
  235. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.gv +15 -0
  236. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.stderr +0 -0
  237. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.xdot +60 -0
  238. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.dot +33 -0
  239. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.gv +12 -0
  240. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.stderr +0 -0
  241. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.xdot +54 -0
  242. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.dot +33 -0
  243. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.gv +12 -0
  244. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.stderr +0 -0
  245. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.xdot +54 -0
  246. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.dot +33 -0
  247. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.gv +12 -0
  248. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.stderr +0 -0
  249. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.xdot +54 -0
  250. package/src/layout/neato/__fixtures__/dim/pack-dim3.dot +47 -0
  251. package/src/layout/neato/__fixtures__/dim/pack-dim3.gv +14 -0
  252. package/src/layout/neato/__fixtures__/dim/pack-dim3.stderr +0 -0
  253. package/src/layout/neato/__fixtures__/dim/pack-dim3.xdot +78 -0
  254. package/src/layout/neato/__fixtures__/dim/pins-dim3.dot +38 -0
  255. package/src/layout/neato/__fixtures__/dim/pins-dim3.gv +14 -0
  256. package/src/layout/neato/__fixtures__/dim/pins-dim3.stderr +0 -0
  257. package/src/layout/neato/__fixtures__/dim/pins-dim3.xdot +59 -0
  258. package/src/layout/neato/__fixtures__/dim/regen.sh +24 -0
  259. package/src/layout/neato/__fixtures__/dim/regular-dim3.dot +33 -0
  260. package/src/layout/neato/__fixtures__/dim/regular-dim3.gv +12 -0
  261. package/src/layout/neato/__fixtures__/dim/regular-dim3.stderr +0 -0
  262. package/src/layout/neato/__fixtures__/dim/regular-dim3.xdot +54 -0
  263. package/src/layout/neato/__fixtures__/dim/sgd-dim3.dot +33 -0
  264. package/src/layout/neato/__fixtures__/dim/sgd-dim3.gv +12 -0
  265. package/src/layout/neato/__fixtures__/dim/sgd-dim3.stderr +0 -0
  266. package/src/layout/neato/__fixtures__/dim/sgd-dim3.xdot +54 -0
  267. package/src/layout/neato/__fixtures__/dim/smart-units.json +16 -0
  268. package/src/layout/neato/__fixtures__/dim/subset-dim3.dot +33 -0
  269. package/src/layout/neato/__fixtures__/dim/subset-dim3.gv +12 -0
  270. package/src/layout/neato/__fixtures__/dim/subset-dim3.stderr +0 -0
  271. package/src/layout/neato/__fixtures__/dim/subset-dim3.xdot +54 -0
  272. package/src/layout/neato/closest.ts +206 -0
  273. package/src/layout/neato/constrained-majorization.ts +4 -23
  274. package/src/layout/neato/embed-graph.ts +81 -0
  275. package/src/layout/neato/fdp-adjust.ts +22 -8
  276. package/src/layout/neato/index.ts +26 -17
  277. package/src/layout/neato/init-dim.ts +165 -0
  278. package/src/layout/neato/init.ts +9 -35
  279. package/src/layout/neato/kk.ts +47 -41
  280. package/src/layout/neato/matrix-ops-dense.ts +232 -0
  281. package/src/layout/neato/pca.ts +60 -0
  282. package/src/layout/neato/sgd.ts +11 -4
  283. package/src/layout/neato/start.ts +8 -5
  284. package/src/layout/neato/stress-kernel.ts +65 -5
  285. package/src/layout/neato/stress-subspace.ts +371 -0
  286. package/src/layout/neato/vpsc-adjust.ts +3 -1
  287. package/src/layout/pack/__fixtures__/cc-reuse/circo.dot +23 -0
  288. package/src/layout/pack/__fixtures__/cc-reuse/circo.gv +1 -0
  289. package/src/layout/pack/__fixtures__/cc-reuse/circo.stderr +0 -0
  290. package/src/layout/pack/__fixtures__/cc-reuse/circo.xdot +38 -0
  291. package/src/layout/pack/__fixtures__/cc-reuse/neato.dot +23 -0
  292. package/src/layout/pack/__fixtures__/cc-reuse/neato.gv +1 -0
  293. package/src/layout/pack/__fixtures__/cc-reuse/neato.stderr +0 -0
  294. package/src/layout/pack/__fixtures__/cc-reuse/neato.xdot +38 -0
  295. package/src/layout/pack/__fixtures__/cc-reuse/osage.dot +23 -0
  296. package/src/layout/pack/__fixtures__/cc-reuse/osage.gv +1 -0
  297. package/src/layout/pack/__fixtures__/cc-reuse/osage.stderr +0 -0
  298. package/src/layout/pack/__fixtures__/cc-reuse/osage.xdot +38 -0
  299. package/src/layout/pack/__fixtures__/cc-reuse/regen.sh +24 -0
  300. package/src/layout/pack/__fixtures__/cc-reuse/sfdp.dot +21 -0
  301. package/src/layout/pack/__fixtures__/cc-reuse/sfdp.gv +1 -0
  302. package/src/layout/pack/__fixtures__/cc-reuse/sfdp.stderr +0 -0
  303. package/src/layout/pack/__fixtures__/cc-reuse/sfdp.xdot +36 -0
  304. package/src/layout/pack/__fixtures__/cc-reuse/twopi.dot +21 -0
  305. package/src/layout/pack/__fixtures__/cc-reuse/twopi.gv +1 -0
  306. package/src/layout/pack/__fixtures__/cc-reuse/twopi.stderr +1 -0
  307. package/src/layout/pack/__fixtures__/cc-reuse/twopi.xdot +36 -0
  308. package/src/layout/pack/ccomps.ts +34 -6
  309. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.dot +32 -0
  310. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.gv +11 -0
  311. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.stderr +0 -0
  312. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.xdot +53 -0
  313. package/src/layout/sfdp/__fixtures__/dim/dim3.dot +31 -0
  314. package/src/layout/sfdp/__fixtures__/dim/dim3.gv +10 -0
  315. package/src/layout/sfdp/__fixtures__/dim/dim3.stderr +0 -0
  316. package/src/layout/sfdp/__fixtures__/dim/dim3.xdot +52 -0
  317. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.dot +32 -0
  318. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.gv +11 -0
  319. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.stderr +0 -0
  320. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.xdot +53 -0
  321. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.dot +33 -0
  322. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.gv +12 -0
  323. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.stderr +0 -0
  324. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.xdot +54 -0
  325. package/src/layout/sfdp/__fixtures__/dim/regen.sh +24 -0
  326. package/src/layout/sfdp/index.ts +15 -10
  327. package/src/layout/sfdp/init.ts +26 -11
  328. package/src/layout/twopi/circle.ts +5 -1
  329. package/src/layout/twopi/index.ts +3 -0
  330. package/src/render/dot/agwrite.ts +2 -2
  331. package/src/render/dot/attrs.ts +16 -0
  332. package/src/render/dot/write-back.ts +2 -2
@@ -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;
@@ -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
@@ -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
+ }
@@ -0,0 +1,32 @@
1
+ graph G {
2
+ graph [bb="0,0,107.14,88.819",
3
+ dim=4,
4
+ dimen=4
5
+ ];
6
+ node [label="\N"];
7
+ a [height=0.5,
8
+ pos="37.864,70.819,-16.68,27.138",
9
+ width=0.75];
10
+ b [height=0.5,
11
+ pos="27,57.854,7.5313,93.238",
12
+ width=0.75];
13
+ a -- b [pos="27.122,58 27.082,57.952 27.052,57.916 27.031,57.891"];
14
+ c [height=0.5,
15
+ pos="53.758,42.899,52.562,45.431",
16
+ width=0.75];
17
+ a -- c [pos="47.658,53.614 47.709,53.524 47.76,53.434 47.811,53.345"];
18
+ b -- c [pos="48.083,46.071 48.187,46.013 48.289,45.955 48.391,45.898"];
19
+ d [height=0.5,
20
+ pos="80.144,18,48.823,-24.844",
21
+ width=0.75];
22
+ c -- d [pos="69.716,27.841 69.802,27.759 69.889,27.677 69.976,27.595"];
23
+ e [height=0.5,
24
+ pos="64.566,45.656,-21.302,-42.713",
25
+ width=0.75];
26
+ d -- e [pos="70.544,35.042 70.494,35.131 70.444,35.22 70.394,35.308"];
27
+ e -- a [pos="48.725,60.584 48.635,60.669 48.545,60.753 48.456,60.838"];
28
+ f [height=0.5,
29
+ pos="75.665,45.202,-70.934,-98.25",
30
+ width=0.75];
31
+ e -- f [pos="75.54,45.208 75.581,45.206 75.612,45.205 75.633,45.204"];
32
+ }
@@ -0,0 +1,11 @@
1
+ graph G {
2
+ dim=4;
3
+ dimen=4;
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 88.82 107.14 88.82 107.14 0 ",
3
+ bb="0,0,107.14,88.819",
4
+ dim=4,
5
+ dimen=4,
6
+ xdotversion=1.7
7
+ ];
8
+ node [label="\N"];
9
+ a [_draw_="c 7 -#000000 e 37.86 70.82 27 18 ",
10
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 37.86 66.62 0 6.21 1 -a ",
11
+ height=0.5,
12
+ pos="37.864,70.819,-16.68,27.138",
13
+ width=0.75];
14
+ b [_draw_="c 7 -#000000 e 27 57.85 27 18 ",
15
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 27 53.65 0 7 1 -b ",
16
+ height=0.5,
17
+ pos="27,57.854,7.5313,93.238",
18
+ width=0.75];
19
+ a -- b [_draw_="c 7 -#000000 B 4 27.12 58 27.08 57.95 27.05 57.92 27.03 57.89 ",
20
+ pos="27.122,58 27.082,57.952 27.052,57.916 27.031,57.891"];
21
+ c [_draw_="c 7 -#000000 e 53.76 42.9 27 18 ",
22
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 53.76 38.7 0 6.21 1 -c ",
23
+ height=0.5,
24
+ pos="53.758,42.899,52.562,45.431",
25
+ width=0.75];
26
+ a -- c [_draw_="c 7 -#000000 B 4 47.66 53.61 47.71 53.52 47.76 53.43 47.81 53.35 ",
27
+ pos="47.658,53.614 47.709,53.524 47.76,53.434 47.811,53.345"];
28
+ b -- c [_draw_="c 7 -#000000 B 4 48.08 46.07 48.19 46.01 48.29 45.96 48.39 45.9 ",
29
+ pos="48.083,46.071 48.187,46.013 48.289,45.955 48.391,45.898"];
30
+ d [_draw_="c 7 -#000000 e 80.14 18 27 18 ",
31
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 80.14 13.8 0 7 1 -d ",
32
+ height=0.5,
33
+ pos="80.144,18,48.823,-24.844",
34
+ width=0.75];
35
+ c -- d [_draw_="c 7 -#000000 B 4 69.72 27.84 69.8 27.76 69.89 27.68 69.98 27.6 ",
36
+ pos="69.716,27.841 69.802,27.759 69.889,27.677 69.976,27.595"];
37
+ e [_draw_="c 7 -#000000 e 64.57 45.66 27 18 ",
38
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 64.57 41.46 0 6.21 1 -e ",
39
+ height=0.5,
40
+ pos="64.566,45.656,-21.302,-42.713",
41
+ width=0.75];
42
+ d -- e [_draw_="c 7 -#000000 B 4 70.54 35.04 70.49 35.13 70.44 35.22 70.39 35.31 ",
43
+ pos="70.544,35.042 70.494,35.131 70.444,35.22 70.394,35.308"];
44
+ e -- a [_draw_="c 7 -#000000 B 4 48.72 60.58 48.63 60.67 48.55 60.75 48.46 60.84 ",
45
+ pos="48.725,60.584 48.635,60.669 48.545,60.753 48.456,60.838"];
46
+ f [_draw_="c 7 -#000000 e 75.66 45.2 27 18 ",
47
+ _ldraw_="F 14 11 -Times-Roman c 7 -#000000 T 75.66 41 0 4.66 1 -f ",
48
+ height=0.5,
49
+ pos="75.665,45.202,-70.934,-98.25",
50
+ width=0.75];
51
+ e -- f [_draw_="c 7 -#000000 B 4 75.54 45.21 75.58 45.21 75.61 45.2 75.63 45.2 ",
52
+ pos="75.54,45.208 75.581,45.206 75.612,45.205 75.633,45.204"];
53
+ }
@@ -0,0 +1,31 @@
1
+ graph G {
2
+ graph [bb="0,0,162.6,240.7",
3
+ dimen=3
4
+ ];
5
+ node [label="\N"];
6
+ a [height=0.5,
7
+ pos="52.001,159.72,-7.2571",
8
+ width=0.75];
9
+ b [height=0.5,
10
+ pos="83.811,222.7,-23.86",
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,18.417",
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,27.1",
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,0.43985",
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,-14.84",
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
+ }