@knowvah/dot-engine 2.10.3 → 2.12.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 (342) hide show
  1. package/dist/common/agerr.d.ts +12 -0
  2. package/dist/common/agerr.d.ts.map +1 -1
  3. package/dist/gvc/context.d.ts.map +1 -1
  4. package/dist/gvc/emit-xdot.d.ts.map +1 -1
  5. package/dist/gvc/layout-reset.d.ts +38 -1
  6. package/dist/gvc/layout-reset.d.ts.map +1 -1
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +1260 -387
  10. package/dist/index.js.map +4 -4
  11. package/dist/layout/circo/circular.d.ts.map +1 -1
  12. package/dist/layout/dot/edge-route-chain.d.ts.map +1 -1
  13. package/dist/layout/dot/edge-route-helpers.d.ts +6 -1
  14. package/dist/layout/dot/edge-route-helpers.d.ts.map +1 -1
  15. package/dist/layout/dot/edge-route-rank.d.ts +4 -1
  16. package/dist/layout/dot/edge-route-rank.d.ts.map +1 -1
  17. package/dist/layout/dot/index.d.ts.map +1 -1
  18. package/dist/layout/dot/init.d.ts.map +1 -1
  19. package/dist/layout/fdp/cluster-edges.d.ts +11 -0
  20. package/dist/layout/fdp/cluster-edges.d.ts.map +1 -1
  21. package/dist/layout/neato/closest.d.ts +20 -0
  22. package/dist/layout/neato/closest.d.ts.map +1 -0
  23. package/dist/layout/neato/constrained-majorization.d.ts +13 -0
  24. package/dist/layout/neato/constrained-majorization.d.ts.map +1 -1
  25. package/dist/layout/neato/embed-graph.d.ts +20 -0
  26. package/dist/layout/neato/embed-graph.d.ts.map +1 -0
  27. package/dist/layout/neato/fdp-adjust.d.ts.map +1 -1
  28. package/dist/layout/neato/index.d.ts.map +1 -1
  29. package/dist/layout/neato/init-dim.d.ts +54 -0
  30. package/dist/layout/neato/init-dim.d.ts.map +1 -0
  31. package/dist/layout/neato/init.d.ts +1 -11
  32. package/dist/layout/neato/init.d.ts.map +1 -1
  33. package/dist/layout/neato/kk.d.ts +4 -2
  34. package/dist/layout/neato/kk.d.ts.map +1 -1
  35. package/dist/layout/neato/matrix-ops-dense.d.ts +34 -0
  36. package/dist/layout/neato/matrix-ops-dense.d.ts.map +1 -0
  37. package/dist/layout/neato/pca.d.ts +14 -0
  38. package/dist/layout/neato/pca.d.ts.map +1 -0
  39. package/dist/layout/neato/sgd.d.ts +2 -3
  40. package/dist/layout/neato/sgd.d.ts.map +1 -1
  41. package/dist/layout/neato/start.d.ts +5 -5
  42. package/dist/layout/neato/start.d.ts.map +1 -1
  43. package/dist/layout/neato/stress-kernel.d.ts +10 -2
  44. package/dist/layout/neato/stress-kernel.d.ts.map +1 -1
  45. package/dist/layout/neato/stress-subspace.d.ts +39 -0
  46. package/dist/layout/neato/stress-subspace.d.ts.map +1 -0
  47. package/dist/layout/neato/vpsc-adjust.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/sfdp/index.d.ts.map +1 -1
  51. package/dist/layout/sfdp/init.d.ts +6 -7
  52. package/dist/layout/sfdp/init.d.ts.map +1 -1
  53. package/dist/layout/twopi/circle.d.ts.map +1 -1
  54. package/dist/layout/twopi/index.d.ts.map +1 -1
  55. package/dist/render/dot/attrs.d.ts +7 -0
  56. package/dist/render/dot/attrs.d.ts.map +1 -1
  57. package/dist/render.js +1637 -770
  58. package/dist/render.js.map +4 -4
  59. package/package.json +4 -4
  60. package/src/common/agerr.ts +49 -1
  61. package/src/gvc/__fixtures__/rerender/abom-shift-pack.dot.plain.nofree.1 +20 -0
  62. package/src/gvc/__fixtures__/rerender/abom-shift-pack.dot.plain.nofree.2 +20 -0
  63. package/src/gvc/__fixtures__/rerender/abom-shift-pack.dot.plain.nofree.3 +20 -0
  64. package/src/gvc/__fixtures__/rerender/abom-shift-pack.gv +1 -0
  65. package/src/gvc/__fixtures__/rerender/abom-shift-parity.dot.plain.nofree.1 +22 -0
  66. package/src/gvc/__fixtures__/rerender/abom-shift-parity.dot.plain.nofree.2 +22 -0
  67. package/src/gvc/__fixtures__/rerender/abom-shift-parity.dot.plain.nofree.3 +22 -0
  68. package/src/gvc/__fixtures__/rerender/abom-shift-parity.gv +1 -0
  69. package/src/gvc/__fixtures__/rerender/abom-shift.dot.plain.nofree.1 +13 -0
  70. package/src/gvc/__fixtures__/rerender/abom-shift.dot.plain.nofree.2 +13 -0
  71. package/src/gvc/__fixtures__/rerender/abom-shift.dot.plain.nofree.3 +13 -0
  72. package/src/gvc/__fixtures__/rerender/abom-shift.gv +1 -0
  73. package/src/gvc/__fixtures__/rerender/cluster-edge-splines.fdp.plain.1 +10 -0
  74. package/src/gvc/__fixtures__/rerender/cluster-edge-splines.fdp.plain.2 +11 -0
  75. package/src/gvc/__fixtures__/rerender/cluster-edge-splines.gv +9 -0
  76. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.dot.1 +40 -0
  77. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.dot.2 +40 -0
  78. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.plain.noaddr.1 +15 -0
  79. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.plain.noaddr.2 +17 -0
  80. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-plain.1 +40 -0
  81. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-plain.2 +15 -0
  82. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-svg.1 +40 -0
  83. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-dot-svg.2 +99 -0
  84. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-json-json.1 +489 -0
  85. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-json-json.2 +503 -0
  86. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-nofree-dot-svg.1 +40 -0
  87. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.seq-nofree-dot-svg.2 +109 -0
  88. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.xdot.1 +69 -0
  89. package/src/gvc/__fixtures__/rerender/cluster-edges.fdp.xdot.2 +70 -0
  90. package/src/gvc/__fixtures__/rerender/cluster-edges.gv +15 -0
  91. package/src/gvc/__fixtures__/rerender/fdp-1581.fdp.dot.1 +104 -0
  92. package/src/gvc/__fixtures__/rerender/fdp-1581.fdp.dot.2 +104 -0
  93. package/src/gvc/__fixtures__/rerender/fdp-1581.gv +26 -0
  94. package/src/gvc/__fixtures__/rerender/flat-rev-stale.dot.plain.nofree.1 +34 -0
  95. package/src/gvc/__fixtures__/rerender/flat-rev-stale.dot.plain.nofree.2 +34 -0
  96. package/src/gvc/__fixtures__/rerender/flat-rev-stale.dot.plain.nofree.3 +34 -0
  97. package/src/gvc/__fixtures__/rerender/flat-rev-stale.gv +33 -0
  98. package/src/gvc/__fixtures__/rerender/multi-edge.dot.svg.nofree.1 +181 -0
  99. package/src/gvc/__fixtures__/rerender/multi-edge.dot.svg.nofree.2 +218 -0
  100. package/src/gvc/__fixtures__/rerender/multi-edge.dot.svg.nofree.3 +255 -0
  101. package/src/gvc/__fixtures__/rerender/regen.sh +25 -0
  102. package/src/gvc/context.ts +7 -2
  103. package/src/gvc/emit-xdot.ts +37 -7
  104. package/src/gvc/layout-reset.ts +59 -1
  105. package/src/index.ts +4 -0
  106. package/src/layout/circo/circular.ts +3 -1
  107. package/src/layout/dot/edge-route-chain.ts +79 -7
  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 +9 -17
  112. package/src/layout/dot/splines-flat.ts +12 -12
  113. package/src/layout/dot/splines.ts +2 -2
  114. package/src/layout/fdp/cluster-edges.ts +0 -0
  115. package/src/layout/fdp/index.ts +2 -2
  116. package/src/layout/neato/__fixtures__/dim/circuit-dim3.dot +33 -0
  117. package/src/layout/neato/__fixtures__/dim/circuit-dim3.gv +12 -0
  118. package/src/layout/neato/__fixtures__/dim/circuit-dim3.stderr +0 -0
  119. package/src/layout/neato/__fixtures__/dim/circuit-dim3.xdot +54 -0
  120. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.dot +32 -0
  121. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.gv +11 -0
  122. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.stderr +0 -0
  123. package/src/layout/neato/__fixtures__/dim/dim11-dimen11.xdot +53 -0
  124. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.dot +32 -0
  125. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.gv +11 -0
  126. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.stderr +0 -0
  127. package/src/layout/neato/__fixtures__/dim/dim3-dimen3.xdot +53 -0
  128. package/src/layout/neato/__fixtures__/dim/dim3.dot +31 -0
  129. package/src/layout/neato/__fixtures__/dim/dim3.gv +10 -0
  130. package/src/layout/neato/__fixtures__/dim/dim3.stderr +0 -0
  131. package/src/layout/neato/__fixtures__/dim/dim3.xdot +52 -0
  132. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.dot +32 -0
  133. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.gv +11 -0
  134. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.stderr +0 -0
  135. package/src/layout/neato/__fixtures__/dim/dim4-dimen4.xdot +53 -0
  136. package/src/layout/neato/__fixtures__/dim/dimen3.dot +31 -0
  137. package/src/layout/neato/__fixtures__/dim/dimen3.gv +10 -0
  138. package/src/layout/neato/__fixtures__/dim/dimen3.stderr +0 -0
  139. package/src/layout/neato/__fixtures__/dim/dimen3.xdot +52 -0
  140. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.dot +267 -0
  141. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.gv +84 -0
  142. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.stderr +0 -0
  143. package/src/layout/neato/__fixtures__/dim/hier-big-dim3.xdot +468 -0
  144. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.dot +267 -0
  145. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.gv +84 -0
  146. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.stderr +0 -0
  147. package/src/layout/neato/__fixtures__/dim/hier-big-dim4.xdot +468 -0
  148. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.dot +268 -0
  149. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.gv +85 -0
  150. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.stderr +0 -0
  151. package/src/layout/neato/__fixtures__/dim/hier-big-subset-dim3.xdot +469 -0
  152. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.dot +484 -0
  153. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.gv +151 -0
  154. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.stderr +0 -0
  155. package/src/layout/neato/__fixtures__/dim/hier-big110-dim3.xdot +852 -0
  156. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.dot +34 -0
  157. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.gv +13 -0
  158. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.stderr +0 -0
  159. package/src/layout/neato/__fixtures__/dim/hier-circuit-dim3.xdot +55 -0
  160. package/src/layout/neato/__fixtures__/dim/hier-dim3.dot +33 -0
  161. package/src/layout/neato/__fixtures__/dim/hier-dim3.gv +12 -0
  162. package/src/layout/neato/__fixtures__/dim/hier-dim3.stderr +0 -0
  163. package/src/layout/neato/__fixtures__/dim/hier-dim3.xdot +54 -0
  164. package/src/layout/neato/__fixtures__/dim/hier-dim4.dot +33 -0
  165. package/src/layout/neato/__fixtures__/dim/hier-dim4.gv +12 -0
  166. package/src/layout/neato/__fixtures__/dim/hier-dim4.stderr +0 -0
  167. package/src/layout/neato/__fixtures__/dim/hier-dim4.xdot +54 -0
  168. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.dot +32 -0
  169. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.gv +11 -0
  170. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.stderr +0 -0
  171. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim2.xdot +53 -0
  172. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.dot +34 -0
  173. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.gv +13 -0
  174. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.stderr +0 -0
  175. package/src/layout/neato/__fixtures__/dim/hier-dirnone-dim3.xdot +55 -0
  176. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.dot +37 -0
  177. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.gv +12 -0
  178. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.stderr +0 -0
  179. package/src/layout/neato/__fixtures__/dim/hier-len-dim3.xdot +58 -0
  180. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.dot +141 -0
  181. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.gv +48 -0
  182. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.stderr +1 -0
  183. package/src/layout/neato/__fixtures__/dim/hier-noedge-big.xdot +233 -0
  184. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.dot +21 -0
  185. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.gv +8 -0
  186. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.stderr +1 -0
  187. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim2.xdot +33 -0
  188. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.dot +23 -0
  189. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.gv +10 -0
  190. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.stderr +1 -0
  191. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim3.xdot +35 -0
  192. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.dot +23 -0
  193. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.gv +10 -0
  194. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.stderr +1 -0
  195. package/src/layout/neato/__fixtures__/dim/hier-noedge-dim4.xdot +35 -0
  196. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.dot +26 -0
  197. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.gv +7 -0
  198. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.stderr +0 -0
  199. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim2.xdot +44 -0
  200. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.dot +28 -0
  201. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.gv +9 -0
  202. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.stderr +0 -0
  203. package/src/layout/neato/__fixtures__/dim/hier-nohier-dim3.xdot +46 -0
  204. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.dot +48 -0
  205. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.gv +15 -0
  206. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.stderr +0 -0
  207. package/src/layout/neato/__fixtures__/dim/hier-pack-dim3.xdot +79 -0
  208. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.dot +56 -0
  209. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.gv +17 -0
  210. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.stderr +0 -0
  211. package/src/layout/neato/__fixtures__/dim/hier-ring-dim3.xdot +94 -0
  212. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.dot +47 -0
  213. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.gv +14 -0
  214. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.stderr +0 -0
  215. package/src/layout/neato/__fixtures__/dim/hier-star-dim3.xdot +78 -0
  216. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.dot +34 -0
  217. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.gv +13 -0
  218. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.stderr +0 -0
  219. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim3.xdot +55 -0
  220. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.dot +34 -0
  221. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.gv +13 -0
  222. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.stderr +0 -0
  223. package/src/layout/neato/__fixtures__/dim/hier-stresswt1-dim4.xdot +55 -0
  224. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.dot +34 -0
  225. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.gv +13 -0
  226. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.stderr +0 -0
  227. package/src/layout/neato/__fixtures__/dim/hier-subset-dim3.xdot +55 -0
  228. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.dot +15 -0
  229. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.gv +6 -0
  230. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.stderr +0 -0
  231. package/src/layout/neato/__fixtures__/dim/hier-two-dim3.xdot +22 -0
  232. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.dot +33 -0
  233. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.gv +12 -0
  234. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.stderr +0 -0
  235. package/src/layout/neato/__fixtures__/dim/ipsep-dim3.xdot +54 -0
  236. package/src/layout/neato/__fixtures__/dim/kk-dim3.dot +33 -0
  237. package/src/layout/neato/__fixtures__/dim/kk-dim3.gv +12 -0
  238. package/src/layout/neato/__fixtures__/dim/kk-dim3.stderr +0 -0
  239. package/src/layout/neato/__fixtures__/dim/kk-dim3.xdot +54 -0
  240. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.dot +33 -0
  241. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.gv +12 -0
  242. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.stderr +0 -0
  243. package/src/layout/neato/__fixtures__/dim/kk-dim4-dimen4.xdot +54 -0
  244. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.dot +39 -0
  245. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.gv +15 -0
  246. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.stderr +0 -0
  247. package/src/layout/neato/__fixtures__/dim/kk-pins-dim3.xdot +60 -0
  248. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.dot +33 -0
  249. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.gv +12 -0
  250. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.stderr +0 -0
  251. package/src/layout/neato/__fixtures__/dim/overlap-false-dim3.xdot +54 -0
  252. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.dot +33 -0
  253. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.gv +12 -0
  254. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.stderr +0 -0
  255. package/src/layout/neato/__fixtures__/dim/overlap-scale-dim3.xdot +54 -0
  256. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.dot +33 -0
  257. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.gv +12 -0
  258. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.stderr +0 -0
  259. package/src/layout/neato/__fixtures__/dim/overlap-vpsc-dim3.xdot +54 -0
  260. package/src/layout/neato/__fixtures__/dim/pack-dim3.dot +47 -0
  261. package/src/layout/neato/__fixtures__/dim/pack-dim3.gv +14 -0
  262. package/src/layout/neato/__fixtures__/dim/pack-dim3.stderr +0 -0
  263. package/src/layout/neato/__fixtures__/dim/pack-dim3.xdot +78 -0
  264. package/src/layout/neato/__fixtures__/dim/pins-dim3.dot +38 -0
  265. package/src/layout/neato/__fixtures__/dim/pins-dim3.gv +14 -0
  266. package/src/layout/neato/__fixtures__/dim/pins-dim3.stderr +0 -0
  267. package/src/layout/neato/__fixtures__/dim/pins-dim3.xdot +59 -0
  268. package/src/layout/neato/__fixtures__/dim/regen.sh +24 -0
  269. package/src/layout/neato/__fixtures__/dim/regular-dim3.dot +33 -0
  270. package/src/layout/neato/__fixtures__/dim/regular-dim3.gv +12 -0
  271. package/src/layout/neato/__fixtures__/dim/regular-dim3.stderr +0 -0
  272. package/src/layout/neato/__fixtures__/dim/regular-dim3.xdot +54 -0
  273. package/src/layout/neato/__fixtures__/dim/sgd-dim3.dot +33 -0
  274. package/src/layout/neato/__fixtures__/dim/sgd-dim3.gv +12 -0
  275. package/src/layout/neato/__fixtures__/dim/sgd-dim3.stderr +0 -0
  276. package/src/layout/neato/__fixtures__/dim/sgd-dim3.xdot +54 -0
  277. package/src/layout/neato/__fixtures__/dim/smart-units.json +16 -0
  278. package/src/layout/neato/__fixtures__/dim/subset-dim3.dot +33 -0
  279. package/src/layout/neato/__fixtures__/dim/subset-dim3.gv +12 -0
  280. package/src/layout/neato/__fixtures__/dim/subset-dim3.stderr +0 -0
  281. package/src/layout/neato/__fixtures__/dim/subset-dim3.xdot +54 -0
  282. package/src/layout/neato/closest.ts +206 -0
  283. package/src/layout/neato/constrained-majorization.ts +4 -23
  284. package/src/layout/neato/embed-graph.ts +81 -0
  285. package/src/layout/neato/fdp-adjust.ts +22 -8
  286. package/src/layout/neato/index.ts +26 -17
  287. package/src/layout/neato/init-dim.ts +165 -0
  288. package/src/layout/neato/init.ts +9 -35
  289. package/src/layout/neato/kk.ts +47 -41
  290. package/src/layout/neato/matrix-ops-dense.ts +232 -0
  291. package/src/layout/neato/pca.ts +60 -0
  292. package/src/layout/neato/sgd.ts +14 -13
  293. package/src/layout/neato/start.ts +8 -5
  294. package/src/layout/neato/stress-kernel.ts +65 -5
  295. package/src/layout/neato/stress-subspace.ts +371 -0
  296. package/src/layout/neato/vpsc-adjust.ts +3 -1
  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/sfdp/__fixtures__/dim/dim3-dimen3.dot +32 -0
  320. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.gv +11 -0
  321. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.stderr +0 -0
  322. package/src/layout/sfdp/__fixtures__/dim/dim3-dimen3.xdot +53 -0
  323. package/src/layout/sfdp/__fixtures__/dim/dim3.dot +31 -0
  324. package/src/layout/sfdp/__fixtures__/dim/dim3.gv +10 -0
  325. package/src/layout/sfdp/__fixtures__/dim/dim3.stderr +0 -0
  326. package/src/layout/sfdp/__fixtures__/dim/dim3.xdot +52 -0
  327. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.dot +32 -0
  328. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.gv +11 -0
  329. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.stderr +0 -0
  330. package/src/layout/sfdp/__fixtures__/dim/dim4-dimen4.xdot +53 -0
  331. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.dot +33 -0
  332. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.gv +12 -0
  333. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.stderr +0 -0
  334. package/src/layout/sfdp/__fixtures__/dim/overlap-prism-dim3.xdot +54 -0
  335. package/src/layout/sfdp/__fixtures__/dim/regen.sh +24 -0
  336. package/src/layout/sfdp/index.ts +15 -10
  337. package/src/layout/sfdp/init.ts +26 -11
  338. package/src/layout/twopi/circle.ts +5 -1
  339. package/src/layout/twopi/index.ts +3 -0
  340. package/src/render/dot/agwrite.ts +2 -2
  341. package/src/render/dot/attrs.ts +16 -0
  342. package/src/render/dot/write-back.ts +2 -2
@@ -22,6 +22,7 @@ import { routeSpline } from '../../pathplan/route.js';
22
22
  import type { Edge as BarrierEdge } from '../../pathplan/types.js';
23
23
  import { linearBezier } from './edge-route-poly.js';
24
24
  import { updateBbBz } from '../../common/splines-geom.js';
25
+ import { newSpline } from '../../common/splines-clip.js';
25
26
  import { DEFAULT_NODEPENWIDTH } from './edge-route-clip.js';
26
27
  import { resolvePenWidth, parseStyleFlags } from '../../common/style-resolve.js';
27
28
  import type { NodeBox } from './edge-route-geom.js';
@@ -140,9 +141,14 @@ export function makeSplineRecord(bz: Bezier): Spline {
140
141
  return { list: [bz], size: 1, bb: { ll: { x: 0, y: 0 }, ur: { x: 0, y: 0 } } };
141
142
  }
142
143
 
143
- /** Create and install a Spline on the edge. @see lib/common/splines.c:clip_and_install */
144
+ /**
145
+ * Append a Bezier to the edge's Spline, as new_spline does: a layout with no free
146
+ * keeps the routes of the layouts before it.
147
+ * @see lib/common/splines.c:new_spline
148
+ * @see lib/common/splines.c:clip_and_install
149
+ */
144
150
  export function installEdgeSpline(e: GraphEdge, bezierPts: Point[], arrowTip: Point): void {
145
- e.info.spl = makeSplineRecord(makeBezierRecord(bezierPts, arrowTip));
151
+ Object.assign(newSpline(e, bezierPts.length), makeBezierRecord(bezierPts, arrowTip));
146
152
  // C clip_and_install expands GD_bb by every installed bezier segment via
147
153
  // update_bb_bz (splines.c:312). This direct-install path (chain/long-edge
148
154
  // router) must do the same, else a spline that bows outside the node hull —
@@ -13,6 +13,7 @@
13
13
  import type { Graph } from '../../model/graph.js';
14
14
  import type { Node } from '../../model/node.js';
15
15
  import type { Edge } from '../../model/edge.js';
16
+ import type { Bezier } from '../../model/geom.js';
16
17
  import { swapBezier, swapEndsP } from './splines.js';
17
18
  import type { RankEdgeInfo } from './edge-route-routing.js';
18
19
 
@@ -153,12 +154,19 @@ export function staleBezierCount(e: Edge): number {
153
154
 
154
155
  /**
155
156
  * True when `e` kept ED_adjacent from an earlier layout. C never clears the flag,
156
- * so it routes `e` as adjacent even if a node now sits between its ends.
157
+ * so it routes `e` as adjacent even if a node now sits between its ends. A flat
158
+ * edge this layout merged into a new reversed edge goes by that edge's flag: C
159
+ * routes the representative, whose record has no stale flag.
157
160
  * @see lib/dotgen/flat.c:236
158
161
  * @see lib/dotgen/dotsplines.c:366
162
+ * @see lib/dotgen/mincross.c:flat_rev
159
163
  */
160
164
  export function staleAdjacent(e: Edge): boolean {
161
- return staleBezierCount(e) > 0 && (e.info.adjacent ?? 0) !== 0;
165
+ let rep = e;
166
+ while (rep.info.to_virt !== undefined && rep.info.to_virt !== rep) rep = rep.info.to_virt;
167
+ const samePair = (rep.tail === e.tail && rep.head === e.head)
168
+ || (rep.tail === e.head && rep.head === e.tail);
169
+ return staleBezierCount(e) > 0 && ((samePair ? rep : e).info.adjacent ?? 0) !== 0;
162
170
  }
163
171
 
164
172
  /**
@@ -177,9 +185,19 @@ export function swapStaleBeziers(g: Graph): void {
177
185
  const old = spl.list.splice(0, stale).reverse();
178
186
  for (const bz of old) swapBezier(bz);
179
187
  spl.list.push(...old);
188
+ fillEdgeArrowSlots(e, old);
180
189
  }
181
190
  }
182
191
 
192
+ /**
193
+ * C draws from each bezier's flags. The edge slot is the port's source for an end
194
+ * with one flagged bezier, and the swap can make a stale one that bezier.
195
+ */
196
+ function fillEdgeArrowSlots(e: Edge, old: readonly Bezier[]): void {
197
+ e.info.tailArrowOps ??= old.find((bz) => bz.sflag !== 0)?.sArrowOps;
198
+ e.info.headArrowOps ??= old.find((bz) => bz.eflag !== 0)?.eArrowOps;
199
+ }
200
+
183
201
  /**
184
202
  * Extract RankEdgeInfo from the graph's rank table for an edge.
185
203
  * Returns undefined if rank geometry is not available.
@@ -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;
@@ -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;
@@ -26,7 +26,7 @@ import { dispatchOrthoEdges } from './ortho-adapter.js';
26
26
  import { routeEdgeGroups } from './splines-groups.js';
27
27
  import { placePortLabels, placeRegularEdgeLabels, setEdgeLabelPos } from './splines-label.js';
28
28
  import { nodesInSeq } from './decomp.js';
29
- import { agerrLineOn } from '../../common/agerr.js';
29
+ import { agwarningf } from '../../common/agerr.js';
30
30
  import { setState, GVSPLINES } from '../../common/layout-state.js';
31
31
 
32
32
  // ---------------------------------------------------------------------------
@@ -476,7 +476,7 @@ function orthoDispatch(g: Graph): number {
476
476
  function curvedTop(g: Graph): void {
477
477
  resetRW(g);
478
478
  if (((g.root.info.has_labels ?? 0) & EDGE_LABEL) !== 0) {
479
- agerrLineOn('warn', 'edge labels with splines=curved not supported in dot - use xlabels\n');
479
+ agwarningf('edge labels with splines=curved not supported in dot - use xlabels');
480
480
  }
481
481
  }
482
482
 
Binary file
@@ -27,7 +27,7 @@ import { fdpLayout, mkClusters } from './layout.js';
27
27
  import { gdata } from './fdp-model.js';
28
28
  import { graphInit } from '../../common/graph-init.js';
29
29
  import { csrand } from '../../common/crand.js';
30
- import { agerrLineOn } from '../../common/agerr.js';
30
+ import { agwarningf } from '../../common/agerr.js';
31
31
 
32
32
  export { fdpLayout, mkClusters, evalPositions, setBB } from './layout.js';
33
33
  export { fdpTLayout } from './tlayout.js';
@@ -94,7 +94,7 @@ function fdpSplines(g: Graph): void {
94
94
  );
95
95
  }
96
96
  if (g.info.n_cluster_edges) { // HAS_CLUST_EDGE(g)
97
- agerrLineOn('warn', CLUSTER_EDGE_WARNING);
97
+ agwarningf(CLUSTER_EDGE_WARNING);
98
98
  et = EDGETYPE_LINE;
99
99
  } else {
100
100
  splineEdges1(g, et);
@@ -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