graphlay 0.2.0__tar.gz → 0.2.1__tar.gz

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 (245) hide show
  1. {graphlay-0.2.0 → graphlay-0.2.1}/CHANGELOG.md +5 -1
  2. {graphlay-0.2.0 → graphlay-0.2.1}/Cargo.lock +4 -4
  3. {graphlay-0.2.0 → graphlay-0.2.1}/Cargo.toml +2 -3
  4. {graphlay-0.2.0 → graphlay-0.2.1}/PKG-INFO +4 -4
  5. graphlay-0.2.1/RELEASING.md +40 -0
  6. {graphlay-0.2.0 → graphlay-0.2.1}/bindings/python/Cargo.toml +2 -1
  7. graphlay-0.2.1/scripts/set-version.sh +21 -0
  8. graphlay-0.2.0/RELEASING.md +0 -43
  9. graphlay-0.2.0/python/graphlay/__init__.py +0 -325
  10. graphlay-0.2.0/python/graphlay/_native.pyi +0 -14
  11. graphlay-0.2.0/python/graphlay/py.typed +0 -0
  12. {graphlay-0.2.0 → graphlay-0.2.1}/.gitignore +0 -0
  13. {graphlay-0.2.0 → graphlay-0.2.1}/LICENSE-APACHE +0 -0
  14. {graphlay-0.2.0 → graphlay-0.2.1}/LICENSE-MIT +0 -0
  15. {graphlay-0.2.0 → graphlay-0.2.1}/README.md +0 -0
  16. {graphlay-0.2.0 → graphlay-0.2.1}/bench/package.json +0 -0
  17. {graphlay-0.2.0 → graphlay-0.2.1}/bench/run.mjs +0 -0
  18. {graphlay-0.2.0 → graphlay-0.2.1}/bindings/python/README.md +0 -0
  19. {graphlay-0.2.0 → graphlay-0.2.1}/bindings/python/src/lib.rs +0 -0
  20. {graphlay-0.2.0 → graphlay-0.2.1}/bindings/python/tests/test_conformance.py +0 -0
  21. {graphlay-0.2.0 → graphlay-0.2.1}/bindings/python/tests/test_graphlay.py +0 -0
  22. {graphlay-0.2.0 → graphlay-0.2.1}/docs/architecture.md +0 -0
  23. {graphlay-0.2.0 → graphlay-0.2.1}/docs/benchmarks.md +0 -0
  24. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/compounds-1.svg +0 -0
  25. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/compounds-2.svg +0 -0
  26. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/merge_edges-1.svg +0 -0
  27. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/merge_edges-2.svg +0 -0
  28. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/port_hints-1.svg +0 -0
  29. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/port_hints-2.svg +0 -0
  30. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/presets-1.svg +0 -0
  31. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/presets-2.svg +0 -0
  32. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/presets-3.svg +0 -0
  33. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/presets-4.svg +0 -0
  34. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/presets-5.svg +0 -0
  35. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/presets-6.svg +0 -0
  36. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/process_models-1.svg +0 -0
  37. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/process_models-2.svg +0 -0
  38. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/process_models-3.svg +0 -0
  39. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/process_models-4.svg +0 -0
  40. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/process_models-5.svg +0 -0
  41. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/quick_start.svg +0 -0
  42. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/styles-1.svg +0 -0
  43. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/styles-2.svg +0 -0
  44. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/styles-3.svg +0 -0
  45. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/styles-4.svg +0 -0
  46. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/styles-5.svg +0 -0
  47. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/swimlanes-1.svg +0 -0
  48. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/swimlanes-2.svg +0 -0
  49. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/tree-1.svg +0 -0
  50. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/tree-2.svg +0 -0
  51. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/tree-3.svg +0 -0
  52. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery/wrapping.svg +0 -0
  53. {graphlay-0.2.0 → graphlay-0.2.1}/docs/gallery.md +0 -0
  54. {graphlay-0.2.0 → graphlay-0.2.1}/docs/guide.md +0 -0
  55. {graphlay-0.2.0 → graphlay-0.2.1}/docs/literature.md +0 -0
  56. {graphlay-0.2.0 → graphlay-0.2.1}/docs/quality.md +0 -0
  57. {graphlay-0.2.0 → graphlay-0.2.1}/docs/svg.md +0 -0
  58. {graphlay-0.2.0 → graphlay-0.2.1}/examples/bench_corpus.rs +0 -0
  59. {graphlay-0.2.0 → graphlay-0.2.1}/examples/eval.rs +0 -0
  60. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/FORMAT.md +0 -0
  61. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/baseline.json +0 -0
  62. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-an1-all-diag.json +0 -0
  63. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-an1-all.json +0 -0
  64. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-an1-min5pct.json +0 -0
  65. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-an1-top25pct.json +0 -0
  66. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-repairexample-all-diag.json +0 -0
  67. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-repairexample-all.json +0 -0
  68. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-repairexample-min5pct.json +0 -0
  69. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-repairexample-top25pct.json +0 -0
  70. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-rtfm-all-diag.json +0 -0
  71. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-rtfm-all.json +0 -0
  72. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-rtfm-min5pct.json +0 -0
  73. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-rtfm-top25pct.json +0 -0
  74. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-sepsis-all-diag.json +0 -0
  75. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-sepsis-all.json +0 -0
  76. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-sepsis-min5pct.json +0 -0
  77. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-sepsis-top25pct.json +0 -0
  78. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-small-example-all-diag.json +0 -0
  79. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-small-example-all.json +0 -0
  80. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-small-example-min5pct.json +0 -0
  81. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/dfg/dfg-small-example-top25pct.json +0 -0
  82. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocdeclare/ocdeclare-container-logistics.json +0 -0
  83. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocdeclare/ocdeclare-ocel2-p2p.json +0 -0
  84. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocdeclare/ocdeclare-order-management.json +0 -0
  85. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocdfg/ocdfg-container-logistics-top3types.json +0 -0
  86. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocdfg/ocdfg-container-logistics.json +0 -0
  87. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocdfg/ocdfg-ocel2-p2p-top3types.json +0 -0
  88. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocdfg/ocdfg-ocel2-p2p.json +0 -0
  89. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocdfg/ocdfg-order-management-top3types.json +0 -0
  90. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocdfg/ocdfg-order-management.json +0 -0
  91. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocpn/ocpn-container-logistics.json +0 -0
  92. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocpn/ocpn-ocel2-p2p.json +0 -0
  93. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/ocpn/ocpn-order-management.json +0 -0
  94. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-bpic12-tsinghua.json +0 -0
  95. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-bpic19-alphappp.json +0 -0
  96. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-pn.json +0 -0
  97. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-repairexample-alphappp.json +0 -0
  98. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-repairexample-im.json +0 -0
  99. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-rtfm-imf.json +0 -0
  100. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-rtfm-imf02-reference.json +0 -0
  101. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-sepsis-discovered.json +0 -0
  102. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-sepsis-fodina.json +0 -0
  103. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-sepsis-imf.json +0 -0
  104. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/petri/pn-small-example-im.json +0 -0
  105. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/regression/bk-infeasible-layer.json +0 -0
  106. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/regression/bundled-lane-off-outline.json +0 -0
  107. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/regression/edge-label-gap-reservation.json +0 -0
  108. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/regression/multihop-run-through-rank.json +0 -0
  109. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/regression/terminals-share-successor.json +0 -0
  110. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/chain-10-lr.json +0 -0
  111. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/chain-10.json +0 -0
  112. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/cycles-300.json +0 -0
  113. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/dag-100.json +0 -0
  114. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/dag-1000.json +0 -0
  115. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/dag-20.json +0 -0
  116. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/dag-200.json +0 -0
  117. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/dag-2000.json +0 -0
  118. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/dag-400.json +0 -0
  119. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/dag-50-lr.json +0 -0
  120. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/dag-50.json +0 -0
  121. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/diamond-blocks.json +0 -0
  122. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/grid-6x6.json +0 -0
  123. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/hub-spoke-40.json +0 -0
  124. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/layered-wide-200x8.json +0 -0
  125. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/parallel-selfloops.json +0 -0
  126. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/tree-60.json +0 -0
  127. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/synthetic/wide-shallow-30.json +0 -0
  128. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/tree/tree-an1-im.json +0 -0
  129. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/tree/tree-ocpt-discovered-im.json +0 -0
  130. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/tree/tree-repairexample-im.json +0 -0
  131. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/tree/tree-rtfm-im.json +0 -0
  132. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/tree/tree-sepsis-im.json +0 -0
  133. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/tree/tree-small-example-im.json +0 -0
  134. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/typegraph/typegraph-container-logistics.json +0 -0
  135. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/typegraph/typegraph-ocel2-p2p.json +0 -0
  136. {graphlay-0.2.0 → graphlay-0.2.1}/fixtures/typegraph/typegraph-order-management.json +0 -0
  137. {graphlay-0.2.0 → graphlay-0.2.1}/package.json +0 -0
  138. {graphlay-0.2.0 → graphlay-0.2.1}/pnpm-lock.yaml +0 -0
  139. {graphlay-0.2.0 → graphlay-0.2.1}/pnpm-workspace.yaml +0 -0
  140. {graphlay-0.2.0 → graphlay-0.2.1}/pyproject.toml +1 -1
  141. {graphlay-0.2.0/bindings/python → graphlay-0.2.1}/python/graphlay/__init__.py +0 -0
  142. {graphlay-0.2.0/bindings/python → graphlay-0.2.1}/python/graphlay/_native.pyi +0 -0
  143. {graphlay-0.2.0/bindings/python → graphlay-0.2.1}/python/graphlay/py.typed +0 -0
  144. {graphlay-0.2.0 → graphlay-0.2.1}/src/canonical.rs +0 -0
  145. {graphlay-0.2.0 → graphlay-0.2.1}/src/compound.rs +0 -0
  146. {graphlay-0.2.0 → graphlay-0.2.1}/src/error.rs +0 -0
  147. {graphlay-0.2.0 → graphlay-0.2.1}/src/fixture.rs +0 -0
  148. {graphlay-0.2.0 → graphlay-0.2.1}/src/geometry/fp.rs +0 -0
  149. {graphlay-0.2.0 → graphlay-0.2.1}/src/geometry/hit.rs +0 -0
  150. {graphlay-0.2.0 → graphlay-0.2.1}/src/geometry/mod.rs +0 -0
  151. {graphlay-0.2.0 → graphlay-0.2.1}/src/geometry/monotone.rs +0 -0
  152. {graphlay-0.2.0 → graphlay-0.2.1}/src/geometry/polyline.rs +0 -0
  153. {graphlay-0.2.0 → graphlay-0.2.1}/src/geometry/shape.rs +0 -0
  154. {graphlay-0.2.0 → graphlay-0.2.1}/src/geometry/stats.rs +0 -0
  155. {graphlay-0.2.0 → graphlay-0.2.1}/src/graph.rs +0 -0
  156. {graphlay-0.2.0 → graphlay-0.2.1}/src/json.rs +0 -0
  157. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/balance.rs +0 -0
  158. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/bundle.rs +0 -0
  159. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/chainorder.rs +0 -0
  160. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/compact.rs +0 -0
  161. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/coord.rs +0 -0
  162. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/cycle.rs +0 -0
  163. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/dummy.rs +0 -0
  164. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/face.rs +0 -0
  165. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/finish.rs +0 -0
  166. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/flatten.rs +0 -0
  167. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/group.rs +0 -0
  168. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/label.rs +0 -0
  169. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/mainpath.rs +0 -0
  170. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/merge.rs +0 -0
  171. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/mod.rs +0 -0
  172. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/order.rs +0 -0
  173. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/pipeline.rs +0 -0
  174. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/ports.rs +0 -0
  175. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/prepare.rs +0 -0
  176. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/profile.rs +0 -0
  177. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/pullin.rs +0 -0
  178. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/rank.rs +0 -0
  179. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/reroute.rs +0 -0
  180. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/align.rs +0 -0
  181. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/centre.rs +0 -0
  182. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/diagonal.rs +0 -0
  183. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/geom.rs +0 -0
  184. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/gutter.rs +0 -0
  185. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/hints.rs +0 -0
  186. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/lanes.rs +0 -0
  187. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/mod.rs +0 -0
  188. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/orthogonal.rs +0 -0
  189. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/repair.rs +0 -0
  190. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/separate.rs +0 -0
  191. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/sides.rs +0 -0
  192. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/route/spread.rs +0 -0
  193. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/selfloop.rs +0 -0
  194. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/simplex.rs +0 -0
  195. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/splits.rs +0 -0
  196. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/stable.rs +0 -0
  197. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/state.rs +0 -0
  198. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/steps.rs +0 -0
  199. {graphlay-0.2.0 → graphlay-0.2.1}/src/layered/wrap.rs +0 -0
  200. {graphlay-0.2.0 → graphlay-0.2.1}/src/layout.rs +0 -0
  201. {graphlay-0.2.0 → graphlay-0.2.1}/src/lib.rs +0 -0
  202. {graphlay-0.2.0 → graphlay-0.2.1}/src/metrics/flow.rs +0 -0
  203. {graphlay-0.2.0 → graphlay-0.2.1}/src/metrics/labels.rs +0 -0
  204. {graphlay-0.2.0 → graphlay-0.2.1}/src/metrics/lanes.rs +0 -0
  205. {graphlay-0.2.0 → graphlay-0.2.1}/src/metrics/mod.rs +0 -0
  206. {graphlay-0.2.0 → graphlay-0.2.1}/src/metrics/paths.rs +0 -0
  207. {graphlay-0.2.0 → graphlay-0.2.1}/src/metrics/ports.rs +0 -0
  208. {graphlay-0.2.0 → graphlay-0.2.1}/src/metrics/stability.rs +0 -0
  209. {graphlay-0.2.0 → graphlay-0.2.1}/src/options.rs +0 -0
  210. {graphlay-0.2.0 → graphlay-0.2.1}/src/pipeline.rs +0 -0
  211. {graphlay-0.2.0 → graphlay-0.2.1}/src/sort.rs +0 -0
  212. {graphlay-0.2.0 → graphlay-0.2.1}/src/splits.rs +0 -0
  213. {graphlay-0.2.0 → graphlay-0.2.1}/src/svg/mod.rs +0 -0
  214. {graphlay-0.2.0 → graphlay-0.2.1}/src/svg/model.rs +0 -0
  215. {graphlay-0.2.0 → graphlay-0.2.1}/src/svg/render.rs +0 -0
  216. {graphlay-0.2.0 → graphlay-0.2.1}/src/svg/sketch.rs +0 -0
  217. {graphlay-0.2.0 → graphlay-0.2.1}/src/svg/text.rs +0 -0
  218. {graphlay-0.2.0 → graphlay-0.2.1}/src/svg/theme.rs +0 -0
  219. {graphlay-0.2.0 → graphlay-0.2.1}/src/synthetic.rs +0 -0
  220. {graphlay-0.2.0 → graphlay-0.2.1}/src/tree.rs +0 -0
  221. {graphlay-0.2.0 → graphlay-0.2.1}/tests/compound.rs +0 -0
  222. {graphlay-0.2.0 → graphlay-0.2.1}/tests/conformance.rs +0 -0
  223. {graphlay-0.2.0 → graphlay-0.2.1}/tests/constraints.rs +0 -0
  224. {graphlay-0.2.0 → graphlay-0.2.1}/tests/deep_stack.rs +0 -0
  225. {graphlay-0.2.0 → graphlay-0.2.1}/tests/fixtures_layout.rs +0 -0
  226. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/compounds.rs +0 -0
  227. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/merge_edges.rs +0 -0
  228. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/port_hints.rs +0 -0
  229. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/presets.rs +0 -0
  230. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/process_models.rs +0 -0
  231. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/quick_start.rs +0 -0
  232. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/styles.rs +0 -0
  233. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/swimlanes.rs +0 -0
  234. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/tree.rs +0 -0
  235. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery/wrapping.rs +0 -0
  236. {graphlay-0.2.0 → graphlay-0.2.1}/tests/gallery.rs +0 -0
  237. {graphlay-0.2.0 → graphlay-0.2.1}/tests/golden.json +0 -0
  238. {graphlay-0.2.0 → graphlay-0.2.1}/tests/golden.rs +0 -0
  239. {graphlay-0.2.0 → graphlay-0.2.1}/tests/merge_edges.rs +0 -0
  240. {graphlay-0.2.0 → graphlay-0.2.1}/tests/port_hints.rs +0 -0
  241. {graphlay-0.2.0 → graphlay-0.2.1}/tests/random_graphs.rs +0 -0
  242. {graphlay-0.2.0 → graphlay-0.2.1}/tests/regressions.rs +0 -0
  243. {graphlay-0.2.0 → graphlay-0.2.1}/tests/relayout.rs +0 -0
  244. {graphlay-0.2.0 → graphlay-0.2.1}/tests/self_loops.rs +0 -0
  245. {graphlay-0.2.0 → graphlay-0.2.1}/tests/swimlanes.rs +0 -0
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.0 (unreleased)
3
+ ## 0.2.1 (2026-10-15)
4
+
5
+ - Releases now publish through trusted publishing. No code changes.
6
+
7
+ ## 0.2.0 (2026-10-15)
4
8
 
5
9
  First release.
6
10
 
@@ -118,7 +118,7 @@ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
118
118
 
119
119
  [[package]]
120
120
  name = "graphlay"
121
- version = "0.2.0"
121
+ version = "0.2.1"
122
122
  dependencies = [
123
123
  "libm",
124
124
  "schemars",
@@ -129,7 +129,7 @@ dependencies = [
129
129
 
130
130
  [[package]]
131
131
  name = "graphlay-cli"
132
- version = "0.2.0"
132
+ version = "0.2.1"
133
133
  dependencies = [
134
134
  "clap",
135
135
  "graphlay",
@@ -138,7 +138,7 @@ dependencies = [
138
138
 
139
139
  [[package]]
140
140
  name = "graphlay-py"
141
- version = "0.2.0"
141
+ version = "0.2.1"
142
142
  dependencies = [
143
143
  "graphlay",
144
144
  "pyo3",
@@ -146,7 +146,7 @@ dependencies = [
146
146
 
147
147
  [[package]]
148
148
  name = "graphlay-wasm"
149
- version = "0.2.0"
149
+ version = "0.2.1"
150
150
  dependencies = [
151
151
  "graphlay",
152
152
  "wasm-bindgen",
@@ -1,9 +1,8 @@
1
1
  [workspace]
2
- members = ["cli", "bindings/wasm", "bindings/python"]
3
- default-members = ["."]
2
+ members = ["bindings/python"]
4
3
 
5
4
  [workspace.package]
6
- version = "0.2.0"
5
+ version = "0.2.1"
7
6
  edition = "2021"
8
7
  rust-version = "1.88"
9
8
  license = "MIT OR Apache-2.0"
@@ -1,17 +1,17 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: graphlay
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: Intended Audience :: Science/Research
7
7
  Classifier: Programming Language :: Python :: 3
8
8
  Classifier: Programming Language :: Rust
9
9
  Classifier: Topic :: Scientific/Engineering :: Visualization
10
- Requires-Dist: networkx >=3.0 ; extra == 'networkx'
10
+ Requires-Dist: networkx>=3.0 ; extra == 'networkx'
11
11
  Provides-Extra: networkx
12
12
  Summary: Deterministic layered graph layout, tidy trees and SVG rendering, in Rust
13
13
  Keywords: graph,layout,sugiyama,layered,svg,networkx
14
- License: MIT OR Apache-2.0
14
+ License-Expression: MIT OR Apache-2.0
15
15
  Requires-Python: >=3.9
16
16
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
17
17
  Project-URL: Homepage, https://aarkue.github.io/graphlay/
@@ -0,0 +1,40 @@
1
+ # Releasing
2
+
3
+ Pushing a tag `vX.Y.Z` releases everything. The `Release` workflow checks the version, runs the
4
+ tests, and publishes the crates, the npm package, the Python wheels, the command-line binaries and
5
+ a GitHub release with the changelog section.
6
+
7
+ ## One-time setup
8
+
9
+ - crates.io, npm and PyPI all publish through trusted publishing. Each has a trusted publisher
10
+ for owner `aarkue`, repository `graphlay` and workflow `release.yml`. PyPI's also names the
11
+ environment `pypi`. No token secrets are needed.
12
+ - The repository needs a GitHub environment named `pypi`.
13
+ - GitHub Pages needs its source set to GitHub Actions in the repository's Pages settings. The
14
+ `Site` workflow deploys on every push to `main`.
15
+
16
+ ## Each release
17
+
18
+ 1. Run `scripts/set-version.sh X.Y.Z`. It sets the version in `Cargo.toml`, in the CLI's
19
+ dependency on `graphlay`, in `bindings/wasm/js/package.json` and in `Cargo.lock`, and adds a
20
+ dated `## X.Y.Z` heading to the changelog. The Python package reads its version from
21
+ `Cargo.toml`.
22
+ 2. Write the changelog entries under the new heading.
23
+ 3. Run the whole suite once more:
24
+
25
+ ```sh
26
+ cargo test --release --all-features
27
+ cargo test -p graphlay-cli -p graphlay-wasm
28
+ pnpm install && pnpm --filter graphlay build && pnpm --filter graphlay test
29
+ pip install ./bindings/python && pytest bindings/python/tests
30
+ ```
31
+
32
+ 4. Commit, tag and push:
33
+
34
+ ```sh
35
+ git tag vX.Y.Z
36
+ git push origin main vX.Y.Z
37
+ ```
38
+
39
+ Before it publishes anything, the workflow stops if the tag differs from the manifest versions or
40
+ the changelog has no section for it.
@@ -7,11 +7,12 @@ license.workspace = true
7
7
  repository.workspace = true
8
8
  description = "The graphlay layout engine for Python"
9
9
  publish = false
10
+ readme = "README.md"
10
11
 
11
12
  [lib]
12
13
  name = "_native"
13
14
  crate-type = ["cdylib"]
14
15
 
15
16
  [dependencies]
16
- graphlay = { path = "../..", version = "0.2.0" }
17
+ graphlay = { path = "../.." }
17
18
  pyo3 = { version = "0.29", features = ["extension-module", "abi3-py39"] }
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env bash
2
+ # Sets the release version everywhere it is written down and adds its changelog heading.
3
+ # Usage: scripts/set-version.sh 0.2.2
4
+ set -euo pipefail
5
+
6
+ version="${1:?usage: scripts/set-version.sh X.Y.Z}"
7
+ [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "not a version: $version" >&2; exit 1; }
8
+ cd "$(dirname "$0")/.."
9
+
10
+ # The first `version = ` in Cargo.toml is [workspace.package]. The Python package reads it too.
11
+ perl -0pi -e "s/^version = \"[^\"]*\"/version = \"$version\"/m" Cargo.toml
12
+ # graphlay-cli is published, so its dependency on graphlay needs the matching version.
13
+ perl -pi -e "s/^(graphlay = \{ path = \"\.\.\", version = \")[^\"]*/\${1}$version/" cli/Cargo.toml
14
+ (cd bindings/wasm/js && npm pkg set version="$version")
15
+ cargo update --workspace --quiet
16
+
17
+ if ! grep -q "^## $version " CHANGELOG.md; then
18
+ perl -0pi -e "s/^## /## $version ($(date +%F))\n\n- \n\n## /m" CHANGELOG.md
19
+ echo "Added a CHANGELOG.md heading for $version. Fill in its entries."
20
+ fi
21
+ git --no-pager diff --stat
@@ -1,43 +0,0 @@
1
- # Releasing
2
-
3
- Pushing a tag `vX.Y.Z` releases everything. The `Release` workflow checks the version, runs the
4
- tests, and publishes the crates, the npm package, the Python wheels, the command-line binaries and
5
- a GitHub release with the changelog section.
6
-
7
- ## One-time setup
8
-
9
- - crates.io needs an API token with publish rights for `graphlay` and `graphlay-cli`, stored as
10
- the `CARGO_REGISTRY_TOKEN` repository secret. After the first release, trusted publishing can
11
- replace it.
12
- - npm needs an automation token for the `graphlay` package, stored as `NPM_TOKEN`. The first
13
- publish creates the package. After it, a trusted publisher on npmjs.com for this repository and
14
- the `release.yml` workflow can replace the token.
15
- - PyPI needs a pending trusted publisher for the project `graphlay` with this repository, the
16
- workflow `release.yml` and the environment `pypi`. Create the `pypi` environment in the
17
- repository settings as well. No token is needed.
18
- - GitHub Pages needs its source set to GitHub Actions in the repository's Pages settings. The
19
- `Site` workflow deploys on every push to `main`.
20
-
21
- ## Each release
22
-
23
- 1. Set the version in `Cargo.toml` under `[workspace.package]` and in
24
- `bindings/wasm/js/package.json`. The Python package reads it from `Cargo.toml`.
25
- 2. Turn the changelog's `## x.y.z (unreleased)` heading into `## x.y.z (YYYY-MM-DD)`.
26
- 3. Run the whole suite once more:
27
-
28
- ```sh
29
- cargo test --release --all-features
30
- cargo test -p graphlay-cli -p graphlay-wasm
31
- pnpm install && pnpm --filter graphlay build && pnpm --filter graphlay test
32
- pip install ./bindings/python && pytest bindings/python/tests
33
- ```
34
-
35
- 4. Commit, tag and push:
36
-
37
- ```sh
38
- git tag v0.2.0
39
- git push origin main v0.2.0
40
- ```
41
-
42
- Before it publishes anything, the workflow stops if the tag differs from the manifest versions or
43
- the changelog has no section for it.
@@ -1,325 +0,0 @@
1
- """Deterministic graph layout.
2
-
3
- The engine is graphlay, a layered (Sugiyama-style) layout engine in Rust with orthogonal or
4
- diagonal edge routing, a tidy-tree layout, quality metrics and an SVG renderer. A graph goes
5
- in as a dict, a JSON string, a `Graph` built here, or a networkx graph, and a `Layout` comes
6
- back with a position per node and a polyline per edge. In a notebook, a `Layout` displays
7
- itself as a drawing.
8
- """
9
-
10
- from __future__ import annotations
11
-
12
- import json
13
- from typing import Any, Dict, List, Mapping, Optional, Sequence, Tuple, Union
14
-
15
- from . import _native
16
- from ._native import GraphlayError
17
-
18
- __all__ = [
19
- "Graph",
20
- "GraphlayError",
21
- "Layout",
22
- "Svg",
23
- "fingerprint",
24
- "layout",
25
- "layout_tree",
26
- "metrics",
27
- "options",
28
- "presets",
29
- "render_scene",
30
- "reroute",
31
- "sketch",
32
- ]
33
-
34
- __version__ = _native.version()
35
-
36
- GraphLike = Union[Mapping[str, Any], str, "Graph", Any]
37
- """A graph the functions here accept: a dict with `nodes` and `edges` as the engine's JSON
38
- request spells them, that JSON as a string, a `Graph`, or a networkx graph."""
39
-
40
-
41
- class Graph:
42
- """A graph to lay out, built node by node.
43
-
44
- Each node has a size in px and an id of your choice, and `layout().positions()` is keyed
45
- by those ids. Edges name their ends by id or by the index `node()` returned.
46
- """
47
-
48
- def __init__(self) -> None:
49
- self.nodes: List[Dict[str, Any]] = []
50
- self.edges: List[Dict[str, Any]] = []
51
- self.ids: List[Any] = []
52
- self._index: Dict[Any, int] = {}
53
-
54
- def node(
55
- self,
56
- id: Any = None,
57
- *,
58
- width: float = 120.0,
59
- height: float = 50.0,
60
- shape: str = "box",
61
- label: Optional[str] = None,
62
- **fields: Any,
63
- ) -> int:
64
- """Adds a node and returns its index. `fields` are further node fields of the
65
- engine's request, such as `rank`, `group`, `parent`, `position` or `pinned`."""
66
- index = len(self.nodes)
67
- if id is None:
68
- id = index
69
- if id in self._index:
70
- raise ValueError(f"node {id!r} was added twice")
71
- node = {"size": {"width": float(width), "height": float(height)}, "shape": shape}
72
- node["key"] = str(id) if label is None else label
73
- node.update(fields)
74
- self.nodes.append(node)
75
- self.ids.append(id)
76
- self._index[id] = index
77
- return index
78
-
79
- def edge(self, source: Any, target: Any, *, weight: float = 1.0, **fields: Any) -> int:
80
- """Adds an edge between two node ids (or indices) and returns its index. `fields` are
81
- further edge fields of the request, such as `thickness`, `label_size` or `group`."""
82
- edge = {"source": self._resolve(source), "target": self._resolve(target), "weight": weight}
83
- edge.update(fields)
84
- self.edges.append(edge)
85
- return len(self.edges) - 1
86
-
87
- def _resolve(self, ref: Any) -> int:
88
- if ref in self._index:
89
- return self._index[ref]
90
- if isinstance(ref, int) and 0 <= ref < len(self.nodes):
91
- return ref
92
- raise ValueError(f"no node {ref!r}")
93
-
94
- def to_dict(self) -> Dict[str, Any]:
95
- """The graph as the engine's request spells it."""
96
- return {"nodes": self.nodes, "edges": self.edges}
97
-
98
- @classmethod
99
- def from_networkx(
100
- cls,
101
- g: Any,
102
- *,
103
- width: float = 120.0,
104
- height: float = 50.0,
105
- shape: str = "box",
106
- ) -> "Graph":
107
- """A `Graph` from a networkx graph. Node attributes `width`, `height`, `shape` and
108
- `label` override the defaults, and the edge attributes `weight` and `thickness` pass
109
- through. An undirected graph is drawn with each edge pointing the way networkx lists
110
- it."""
111
- out = cls()
112
- for n, data in g.nodes(data=True):
113
- fields = {k: v for k, v in data.items() if k in ("rank", "group", "parent", "pinned")}
114
- out.node(
115
- n,
116
- width=data.get("width", width),
117
- height=data.get("height", height),
118
- shape=data.get("shape", shape),
119
- label=data.get("label"),
120
- **fields,
121
- )
122
- for u, v, data in g.edges(data=True):
123
- fields = {k: v for k, v in data.items() if k in ("thickness", "label_size", "group")}
124
- out.edge(u, v, weight=float(data.get("weight", 1.0)), **fields)
125
- return out
126
-
127
-
128
- class Svg(str):
129
- """SVG markup. Displays as the drawing in a notebook."""
130
-
131
- def _repr_svg_(self) -> str:
132
- return str(self)
133
-
134
- def save(self, path: str) -> None:
135
- """Writes the markup to `path`."""
136
- with open(path, "w", encoding="utf-8") as f:
137
- f.write(self)
138
-
139
-
140
- class Layout:
141
- """Where every node went and how every edge was drawn.
142
-
143
- `nodes[i]` and `edges[i]` follow the input order and are the engine's own dicts: a node
144
- has `center` and `size`, an edge has `points` from source to target, border to border.
145
- """
146
-
147
- def __init__(self, raw: Dict[str, Any], request: str, ids: Sequence[Any]) -> None:
148
- self.raw = raw
149
- self._request = request
150
- self.ids = list(ids)
151
-
152
- @property
153
- def nodes(self) -> List[Dict[str, Any]]:
154
- return self.raw["nodes"]
155
-
156
- @property
157
- def edges(self) -> List[Dict[str, Any]]:
158
- return self.raw["edges"]
159
-
160
- @property
161
- def bounds(self) -> Dict[str, Any]:
162
- """The drawing's bounding box: `min` and `max` points."""
163
- return self.raw["bounds"]
164
-
165
- def positions(self, *, flip_y: bool = False) -> Dict[Any, Tuple[float, float]]:
166
- """Node centres by node id, ready for `networkx.draw(g, pos=...)`. SVG y grows
167
- downwards, so pass `flip_y` for a plot whose y grows upwards."""
168
- sign = -1.0 if flip_y else 1.0
169
- # `+ 0.0` turns the -0.0 a flipped zero would give into 0.0.
170
- return {
171
- id: (n["center"]["x"], sign * n["center"]["y"] + 0.0)
172
- for id, n in zip(self.ids, self.nodes)
173
- }
174
-
175
- def to_dict(self) -> Dict[str, Any]:
176
- return self.raw
177
-
178
- def to_json(self) -> str:
179
- return json.dumps(self.raw)
180
-
181
- def fingerprint(self) -> str:
182
- """A stable fingerprint of the drawing, the same in every binding."""
183
- return _native.fingerprint(self.to_json())
184
-
185
- def metrics(self) -> Dict[str, Any]:
186
- """Quality metrics of the drawing: crossings, bends, node-edge hits and more."""
187
- return json.loads(_native.metrics(self._request, self.to_json()))
188
-
189
- def sketch(
190
- self,
191
- *,
192
- labels: Optional[Sequence[str]] = None,
193
- lane_names: Optional[Sequence[str]] = None,
194
- background: Optional[str] = "#ffffff",
195
- padding: float = 24.0,
196
- ) -> Svg:
197
- """A plain drawing: boxes with labels, edges with arrowheads, lanes behind."""
198
- opts = _sketch_options(labels, lane_names, background, padding)
199
- return Svg(_native.sketch(self._request, self.to_json(), opts))
200
-
201
- def sketch_scene(
202
- self,
203
- *,
204
- labels: Optional[Sequence[str]] = None,
205
- lane_names: Optional[Sequence[str]] = None,
206
- background: Optional[str] = "#ffffff",
207
- padding: float = 24.0,
208
- ) -> Dict[str, Any]:
209
- """The plain drawing as a scene dict, to restyle and pass to `render_scene`."""
210
- opts = _sketch_options(labels, lane_names, background, padding)
211
- return json.loads(_native.sketch_scene(self._request, self.to_json(), opts))
212
-
213
- def _repr_svg_(self) -> str:
214
- return str(self.sketch())
215
-
216
- def __repr__(self) -> str:
217
- return f"Layout({len(self.nodes)} nodes, {len(self.edges)} edges)"
218
-
219
-
220
- def _sketch_options(
221
- labels: Optional[Sequence[str]],
222
- lane_names: Optional[Sequence[str]],
223
- background: Optional[str],
224
- padding: float,
225
- ) -> str:
226
- return json.dumps(
227
- {
228
- "labels": list(labels or []),
229
- "lane_names": list(lane_names or []),
230
- "background": background,
231
- "padding": padding,
232
- }
233
- )
234
-
235
-
236
- def _graph_dict(graph: GraphLike) -> Tuple[Dict[str, Any], List[Any]]:
237
- """The engine's graph dict and the node ids, from any accepted input."""
238
- if isinstance(graph, Graph):
239
- return graph.to_dict(), graph.ids
240
- if isinstance(graph, str):
241
- graph = json.loads(graph)
242
- if isinstance(graph, Mapping):
243
- if "graph" in graph and "nodes" not in graph:
244
- graph = graph["graph"]
245
- nodes = graph.get("nodes", [])
246
- return dict(graph), list(range(len(nodes)))
247
- if hasattr(graph, "nodes") and hasattr(graph, "edges") and callable(graph.edges):
248
- built = Graph.from_networkx(graph)
249
- return built.to_dict(), built.ids
250
- raise TypeError(f"not a graph: {type(graph).__name__}")
251
-
252
-
253
- def _request(graph: GraphLike, preset: Optional[str], options: Optional[Mapping[str, Any]]) -> Tuple[str, List[Any]]:
254
- g, ids = _graph_dict(graph)
255
- request: Dict[str, Any] = {"graph": g}
256
- if preset is not None:
257
- request["preset"] = preset
258
- if options:
259
- request["options"] = dict(options)
260
- return json.dumps(request), ids
261
-
262
-
263
- def layout(
264
- graph: GraphLike,
265
- *,
266
- preset: str = "layered",
267
- options: Optional[Mapping[str, Any]] = None,
268
- ) -> Layout:
269
- """Lays out `graph` with the layered engine.
270
-
271
- `preset` is one of `presets()`. `options` is a patch over the preset's options, such as
272
- `{"direction": "topbottom", "routing": {"style": "diagonal"}}`.
273
- """
274
- request, ids = _request(graph, preset, options)
275
- return Layout(json.loads(_native.layout(request)), request, ids)
276
-
277
-
278
- def reroute(
279
- graph: GraphLike,
280
- *,
281
- preset: str = "layered",
282
- options: Optional[Mapping[str, Any]] = None,
283
- ) -> Layout:
284
- """Re-routes the edges over the `position` each node carries, without moving a node.
285
- For a drag, give every node its current centre and the dragged one its new centre."""
286
- request, ids = _request(graph, preset, options)
287
- return Layout(json.loads(_native.reroute(request)), request, ids)
288
-
289
-
290
- def layout_tree(graph: GraphLike, *, options: Optional[Mapping[str, Any]] = None) -> Layout:
291
- """Lays out a rooted tree or forest with the tidy-tree engine, parents centred over
292
- their children."""
293
- request, ids = _request(graph, None, options)
294
- return Layout(json.loads(_native.layout_tree(request)), request, ids)
295
-
296
-
297
- def metrics(layout: Layout) -> Dict[str, Any]:
298
- """Quality metrics of a layout, the same as `layout.metrics()`."""
299
- return layout.metrics()
300
-
301
-
302
- def fingerprint(layout: Layout) -> str:
303
- """A stable fingerprint of a layout, the same as `layout.fingerprint()`."""
304
- return layout.fingerprint()
305
-
306
-
307
- def sketch(layout: Layout, **kwargs: Any) -> Svg:
308
- """A plain drawing of a layout, the same as `layout.sketch(...)`."""
309
- return layout.sketch(**kwargs)
310
-
311
-
312
- def presets() -> List[str]:
313
- """The presets a layout can start from."""
314
- return list(_native.presets())
315
-
316
-
317
- def options(preset: str = "layered") -> Dict[str, Any]:
318
- """The full options of a preset, to see or edit every field."""
319
- return json.loads(_native.options(preset))
320
-
321
-
322
- def render_scene(scene: Mapping[str, Any], palette: Optional[Mapping[str, Any]] = None) -> Svg:
323
- """Draws a scene (the engine's `svg::Scene`, e.g., from `Layout.sketch_scene`) to SVG.
324
- `palette` holds the fallback colours, and `None` means the default ones."""
325
- return Svg(_native.render_scene(json.dumps(scene), json.dumps(palette) if palette else ""))
@@ -1,14 +0,0 @@
1
- class GraphlayError(ValueError):
2
- """An error the engine reported: a bad request, an invalid graph or a limit exceeded."""
3
-
4
- def version() -> str: ...
5
- def layout(request: str) -> str: ...
6
- def reroute(request: str) -> str: ...
7
- def layout_tree(request: str) -> str: ...
8
- def metrics(request: str, layout: str) -> str: ...
9
- def fingerprint(layout: str) -> str: ...
10
- def presets() -> list[str]: ...
11
- def options(preset: str) -> str: ...
12
- def render_scene(scene: str, palette: str) -> str: ...
13
- def sketch(request: str, layout: str, options: str) -> str: ...
14
- def sketch_scene(request: str, layout: str, options: str) -> str: ...
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes