@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
@@ -0,0 +1,268 @@
1
+ graph G {
2
+ graph [bb="0,0,54,2468.4",
3
+ dim=3,
4
+ dimen=3,
5
+ mode=hier,
6
+ model=subset
7
+ ];
8
+ node [label="\N"];
9
+ v0 [height=0.5,
10
+ pos="27,2450.4,59.599",
11
+ width=0.75];
12
+ v1 [height=0.5,
13
+ pos="27,2436.1,-273.16",
14
+ width=0.75];
15
+ v0 -- v1 [pos="27,2436.2 27,2436.2 27,2436.1 27,2436.1"];
16
+ v2 [height=0.5,
17
+ pos="27,2277.9,-226.82",
18
+ width=0.75];
19
+ v0 -- v2 [pos="27,2431.9 27,2398.7 27,2329.3 27,2296.2"];
20
+ v5 [height=0.5,
21
+ pos="27,2182.2,300.71",
22
+ width=0.75];
23
+ v0 -- v5 [pos="27,2432 27,2382.9 27,2249.3 27,2200.4"];
24
+ v3 [height=0.5,
25
+ pos="27,2107.1,524.92",
26
+ width=0.75];
27
+ v1 -- v3 [pos="27,2417.9 27,2360.4 27,2182.6 27,2125.2"];
28
+ v4 [height=0.5,
29
+ pos="27,2277.9,-905.69",
30
+ width=0.75];
31
+ v1 -- v4 [pos="27,2417.6 27,2387.1 27,2326.6 27,2296.2"];
32
+ v2 -- v5 [pos="27,2259.4 27,2242.5 27,2217.5 27,2200.6"];
33
+ v6 [height=0.5,
34
+ pos="27,1903.2,-84.799",
35
+ width=0.75];
36
+ v2 -- v6 [pos="27,2259.5 27,2195.9 27,1985 27,1921.5"];
37
+ v7 [height=0.5,
38
+ pos="27,1903.2,1087.6",
39
+ width=0.75];
40
+ v3 -- v7 [pos="27,2088.6 27,2049.8 27,1960.1 27,1921.5"];
41
+ v8 [height=0.5,
42
+ pos="27,1531,879.78",
43
+ width=0.75];
44
+ v3 -- v8 [pos="27,2088.9 27,2002.7 27,1636.3 27,1549.5"];
45
+ v38 [height=0.5,
46
+ pos="27,1405.2,617.78",
47
+ width=0.75];
48
+ v3 -- v38 [pos="27,2088.7 27,1989.7 27,1521.9 27,1423.4"];
49
+ v9 [height=0.5,
50
+ pos="27,1803.8,-1277.8",
51
+ width=0.75];
52
+ v4 -- v9 [pos="27,2259.6 27,2184.2 27,1898.1 27,1822.3"];
53
+ v10 [height=0.5,
54
+ pos="27,2182.2,-1507.4",
55
+ width=0.75];
56
+ v4 -- v10 [pos="27,2259.4 27,2242.5 27,2217.5 27,2200.6"];
57
+ v11 [height=0.5,
58
+ pos="27,1531,376.75",
59
+ width=0.75];
60
+ v5 -- v11 [pos="27,2163.8 27,2069.6 27,1643.1 27,1549.3"];
61
+ v12 [height=0.5,
62
+ pos="27,1531,835.75",
63
+ width=0.75];
64
+ v5 -- v12 [pos="27,2163.8 27,2069.6 27,1643.1 27,1549.3"];
65
+ v6 -- v11 [pos="27,1884.7 27,1821.2 27,1612.2 27,1549.1"];
66
+ v13 [height=0.5,
67
+ pos="27,1903.2,-605.26",
68
+ width=0.75];
69
+ v6 -- v13 [pos="27,1903.2 27,1903.2 27,1903.2 27,1903.2"];
70
+ v14 [height=0.5,
71
+ pos="27,1295.8,-108.91",
72
+ width=0.75];
73
+ v6 -- v14 [pos="27,1885 27,1795.7 27,1404 27,1314.2"];
74
+ v15 [height=0.5,
75
+ pos="27,1295.8,855.34",
76
+ width=0.75];
77
+ v7 -- v15 [pos="27,1885 27,1795.7 27,1404 27,1314.2"];
78
+ v16 [height=0.5,
79
+ pos="27,1803.8,1688",
80
+ width=0.75];
81
+ v7 -- v16 [pos="27,1885 27,1867.1 27,1840.2 27,1822.3"];
82
+ v17 [height=0.5,
83
+ pos="27,901.99,221.88",
84
+ width=0.75];
85
+ v8 -- v17 [pos="27,1512.5 27,1420.5 27,1012.5 27,920.47"];
86
+ v18 [height=0.5,
87
+ pos="27,1405.2,1121.4",
88
+ width=0.75];
89
+ v8 -- v18 [pos="27,1512.7 27,1488.9 27,1447.4 27,1423.5"];
90
+ v19 [height=0.5,
91
+ pos="27,1531,-1094.5",
92
+ width=0.75];
93
+ v9 -- v19 [pos="27,1785.5 27,1735.8 27,1598.9 27,1549.3"];
94
+ v20 [height=0.5,
95
+ pos="27,901.99,-1141.5",
96
+ width=0.75];
97
+ v9 -- v20 [pos="27,1785.4 27,1669 27,1036.7 27,920.38"];
98
+ v44 [height=0.5,
99
+ pos="27,1405.2,-1863",
100
+ width=0.75];
101
+ v9 -- v44 [pos="27,1785.4 27,1718.6 27,1489.9 27,1423.5"];
102
+ v21 [height=0.5,
103
+ pos="27,1803.8,-2021.5",
104
+ width=0.75];
105
+ v10 -- v21 [pos="27,2164 27,2099.9 27,1885.7 27,1821.9"];
106
+ v22 [height=0.5,
107
+ pos="27,1803.8,-1826.4",
108
+ width=0.75];
109
+ v10 -- v22 [pos="27,2164 27,2099.9 27,1885.7 27,1821.9"];
110
+ v23 [height=0.5,
111
+ pos="27,901.99,291.22",
112
+ width=0.75];
113
+ v11 -- v23 [pos="27,1512.5 27,1420.5 27,1012.5 27,920.47"];
114
+ v24 [height=0.5,
115
+ pos="27,901.99,961.34",
116
+ width=0.75];
117
+ v11 -- v24 [pos="27,1512.5 27,1420.5 27,1012.5 27,920.47"];
118
+ v12 -- v17 [pos="27,1512.5 27,1420.5 27,1012.5 27,920.47"];
119
+ v25 [height=0.5,
120
+ pos="27,1405.2,1698.2",
121
+ width=0.75];
122
+ v12 -- v25 [pos="27,1512.7 27,1488.9 27,1447.4 27,1423.5"];
123
+ v26 [height=0.5,
124
+ pos="27,649.51,1280.5",
125
+ width=0.75];
126
+ v12 -- v26 [pos="27,1512.6 27,1397.9 27,782.24 27,667.82"];
127
+ v27 [height=0.5,
128
+ pos="27,1803.8,-1067.6",
129
+ width=0.75];
130
+ v13 -- v27 [pos="27,1885 27,1867.1 27,1840.2 27,1822.3"];
131
+ v28 [height=0.5,
132
+ pos="27,1405.2,-508.34",
133
+ width=0.75];
134
+ v13 -- v28 [pos="27,1884.9 27,1806.8 27,1502.1 27,1423.7"];
135
+ v29 [height=0.5,
136
+ pos="27,421.01,424.44",
137
+ width=0.75];
138
+ v14 -- v29 [pos="27,1277.5 27,1163.7 27,552.73 27,439.18"];
139
+ v30 [height=0.5,
140
+ pos="27,901,-99.042",
141
+ width=0.75];
142
+ v14 -- v30 [pos="27,1277.5 27,1211.4 27,984.86 27,919.06"];
143
+ v31 [height=0.5,
144
+ pos="27,649.51,987.85",
145
+ width=0.75];
146
+ v15 -- v31 [pos="27,1277.5 27,1184.1 27,761.67 27,667.96"];
147
+ v32 [height=0.5,
148
+ pos="27,649.51,186.67",
149
+ width=0.75];
150
+ v15 -- v32 [pos="27,1277.5 27,1184.1 27,761.67 27,667.96"];
151
+ v50 [height=0.5,
152
+ pos="27,649.51,1175.8",
153
+ width=0.75];
154
+ v15 -- v50 [pos="27,1277.5 27,1184.1 27,761.67 27,667.96"];
155
+ v33 [height=0.5,
156
+ pos="27,1803.8,1409.8",
157
+ width=0.75];
158
+ v16 -- v33 [pos="27,1803.8 27,1803.8 27,1803.8 27,1803.8"];
159
+ v34 [height=0.5,
160
+ pos="27,1405.2,1941.3",
161
+ width=0.75];
162
+ v16 -- v34 [pos="27,1785.4 27,1718.6 27,1489.9 27,1423.5"];
163
+ v35 [height=0.5,
164
+ pos="27,421.01,-1.9638",
165
+ width=0.75];
166
+ v17 -- v35 [pos="27,883.72 27,807.53 27,515.52 27,439.3"];
167
+ v36 [height=0.5,
168
+ pos="27,649.51,-451.26",
169
+ width=0.75];
170
+ v17 -- v36 [pos="27,883.83 27,837.36 27,714.5 27,667.84"];
171
+ v18 -- v23 [pos="27,1387 27,1308.5 27,999.41 27,920.43"];
172
+ v37 [height=0.5,
173
+ pos="27,901.99,1476.5",
174
+ width=0.75];
175
+ v18 -- v37 [pos="27,1387 27,1308.5 27,999.41 27,920.43"];
176
+ v18 -- v38 [pos="27,1405.2 27,1405.2 27,1405.2 27,1405.2"];
177
+ v39 [height=0.5,
178
+ pos="27,1405.2,-685.77",
179
+ width=0.75];
180
+ v19 -- v39 [pos="27,1512.7 27,1488.9 27,1447.4 27,1423.5"];
181
+ v40 [height=0.5,
182
+ pos="27,1193.1,-1369.5",
183
+ width=0.75];
184
+ v19 -- v40 [pos="27,1512.8 27,1454.2 27,1270.2 27,1211.4"];
185
+ v41 [height=0.5,
186
+ pos="27,421.01,-817.55",
187
+ width=0.75];
188
+ v20 -- v41 [pos="27,883.72 27,807.53 27,515.52 27,439.3"];
189
+ v42 [height=0.5,
190
+ pos="27,649.51,-702.88",
191
+ width=0.75];
192
+ v20 -- v42 [pos="27,883.83 27,837.36 27,714.5 27,667.84"];
193
+ v43 [height=0.5,
194
+ pos="27,1295.8,-2365.5",
195
+ width=0.75];
196
+ v21 -- v43 [pos="27,1785.4 27,1706.1 27,1393.4 27,1314.2"];
197
+ v21 -- v44 [pos="27,1785.4 27,1718.6 27,1489.9 27,1423.5"];
198
+ v56 [height=0.5,
199
+ pos="27,1295.8,-1658.3",
200
+ width=0.75];
201
+ v21 -- v56 [pos="27,1785.4 27,1706.1 27,1393.4 27,1314.2"];
202
+ v45 [height=0.5,
203
+ pos="27,1405.2,-1559",
204
+ width=0.75];
205
+ v22 -- v45 [pos="27,1785.4 27,1718.6 27,1489.9 27,1423.5"];
206
+ v46 [height=0.5,
207
+ pos="27,1405.2,-2123.1",
208
+ width=0.75];
209
+ v22 -- v46 [pos="27,1785.4 27,1718.6 27,1489.9 27,1423.5"];
210
+ v47 [height=0.5,
211
+ pos="27,254.69,-375.9",
212
+ width=0.75];
213
+ v23 -- v47 [pos="27,883.66 27,790.15 27,367.03 27,273.17"];
214
+ v48 [height=0.5,
215
+ pos="27,421.01,642.38",
216
+ width=0.75];
217
+ v23 -- v48 [pos="27,883.72 27,807.53 27,515.52 27,439.3"];
218
+ v24 -- v29 [pos="27,883.72 27,807.53 27,515.52 27,439.3"];
219
+ v49 [height=0.5,
220
+ pos="27,421.01,1402.6",
221
+ width=0.75];
222
+ v24 -- v49 [pos="27,883.72 27,807.53 27,515.52 27,439.3"];
223
+ v24 -- v50 [pos="27,883.83 27,837.36 27,714.5 27,667.84"];
224
+ v51 [height=0.5,
225
+ pos="27,901.99,1729.8",
226
+ width=0.75];
227
+ v25 -- v51 [pos="27,1387 27,1308.5 27,999.41 27,920.43"];
228
+ v52 [height=0.5,
229
+ pos="27,901,1976.4",
230
+ width=0.75];
231
+ v25 -- v52 [pos="27,1387 27,1308.3 27,998.61 27,919.49"];
232
+ v53 [height=0.5,
233
+ pos="27,155.92,908.1",
234
+ width=0.75];
235
+ v26 -- v53 [pos="27,631.06 27,553.18 27,251.75 27,174.2"];
236
+ v54 [height=0.5,
237
+ pos="27,254.69,1093.8",
238
+ width=0.75];
239
+ v26 -- v54 [pos="27,631.26 27,565.14 27,338.56 27,272.75"];
240
+ v27 -- v2 [pos="27,1822.1 27,1897.5 27,2183.6 27,2259.4"];
241
+ v55 [height=0.5,
242
+ pos="27,1295.8,-1260.9",
243
+ width=0.75];
244
+ v27 -- v55 [pos="27,1785.4 27,1706.1 27,1393.4 27,1314.2"];
245
+ v27 -- v56 [pos="27,1785.4 27,1706.1 27,1393.4 27,1314.2"];
246
+ v57 [height=0.5,
247
+ pos="27,901.99,-165.92",
248
+ width=0.75];
249
+ v28 -- v57 [pos="27,1387 27,1308.5 27,999.41 27,920.43"];
250
+ v58 [height=0.5,
251
+ pos="27,901.99,-748.2",
252
+ width=0.75];
253
+ v28 -- v58 [pos="27,1387 27,1308.5 27,999.41 27,920.43"];
254
+ v59 [height=0.5,
255
+ pos="27,18,741.29",
256
+ width=0.75];
257
+ v29 -- v59 [pos="27,402.65 27,335.51 27,103.79 27,36.472"];
258
+ v30 -- v35 [pos="27,882.77 27,806.74 27,515.32 27,439.26"];
259
+ v33 -- v8 [pos="27,1785.5 27,1735.8 27,1598.9 27,1549.3"];
260
+ v36 -- v41 [pos="27,631.2 27,588.41 27,482.28 27,439.41"];
261
+ v39 -- v14 [pos="27,1387.2 27,1367 27,1334.6 27,1314.3"];
262
+ v42 -- v47 [pos="27,631.26 27,565.14 27,338.56 27,272.75"];
263
+ v45 -- v20 [pos="27,1387 27,1308.5 27,999.41 27,920.43"];
264
+ v48 -- v53 [pos="27,402.79 27,354.36 27,222.84 27,174.27"];
265
+ v51 -- v26 [pos="27,883.83 27,837.36 27,714.5 27,667.84"];
266
+ v54 -- v59 [pos="27,236.51 27,192.45 27,80.363 27,36.242"];
267
+ v57 -- v32 [pos="27,883.83 27,837.36 27,714.5 27,667.84"];
268
+ }
@@ -0,0 +1,85 @@
1
+ graph G {
2
+ dim=3;
3
+ dimen=3;
4
+ mode=hier;
5
+ model=subset;
6
+ v0 -- v1;
7
+ v0 -- v2;
8
+ v1 -- v3;
9
+ v1 -- v4;
10
+ v2 -- v5;
11
+ v2 -- v6;
12
+ v3 -- v7;
13
+ v3 -- v8;
14
+ v4 -- v9;
15
+ v4 -- v10;
16
+ v5 -- v11;
17
+ v5 -- v12;
18
+ v6 -- v13;
19
+ v6 -- v14;
20
+ v7 -- v15;
21
+ v7 -- v16;
22
+ v8 -- v17;
23
+ v8 -- v18;
24
+ v9 -- v19;
25
+ v9 -- v20;
26
+ v10 -- v21;
27
+ v10 -- v22;
28
+ v11 -- v23;
29
+ v11 -- v24;
30
+ v12 -- v25;
31
+ v12 -- v26;
32
+ v13 -- v27;
33
+ v13 -- v28;
34
+ v14 -- v29;
35
+ v14 -- v30;
36
+ v15 -- v31;
37
+ v15 -- v32;
38
+ v16 -- v33;
39
+ v16 -- v34;
40
+ v17 -- v35;
41
+ v17 -- v36;
42
+ v18 -- v37;
43
+ v18 -- v38;
44
+ v19 -- v39;
45
+ v19 -- v40;
46
+ v20 -- v41;
47
+ v20 -- v42;
48
+ v21 -- v43;
49
+ v21 -- v44;
50
+ v22 -- v45;
51
+ v22 -- v46;
52
+ v23 -- v47;
53
+ v23 -- v48;
54
+ v24 -- v49;
55
+ v24 -- v50;
56
+ v25 -- v51;
57
+ v25 -- v52;
58
+ v26 -- v53;
59
+ v26 -- v54;
60
+ v27 -- v55;
61
+ v27 -- v56;
62
+ v28 -- v57;
63
+ v28 -- v58;
64
+ v29 -- v59;
65
+ v0 -- v5;
66
+ v3 -- v38;
67
+ v6 -- v11;
68
+ v9 -- v44;
69
+ v12 -- v17;
70
+ v15 -- v50;
71
+ v18 -- v23;
72
+ v21 -- v56;
73
+ v24 -- v29;
74
+ v27 -- v2;
75
+ v30 -- v35;
76
+ v33 -- v8;
77
+ v36 -- v41;
78
+ v39 -- v14;
79
+ v42 -- v47;
80
+ v45 -- v20;
81
+ v48 -- v53;
82
+ v51 -- v26;
83
+ v54 -- v59;
84
+ v57 -- v32;
85
+ }