TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to do manual graph layout diagrams in code?

2 点作者 Multicomp8 个月前
I am aware of [1] and have somewhat used it with somewhat painful ergonomics, and I just learned about [2] today.<p>Can anyone direct me to an as-code tool that you input something like the following, and it spits out a graph diagram of nodes and edges? Mermaidjs, plantuml, graphviz always re-layout everything whenever the contents of the graph change, and I want to have manual or semi-manual control of the layout.<p>I&#x27;m trying to track generally geographic locations (dungeon rooms, location node graphs) or relationships (Marvin likes Doug but hates Mr. Spiff. Mr. Spiff is suspicious of Doug yet worries about Marvin. etc. )<p>A[Village square]<p>B[Farmers cabin] east of A<p>C[Haunted windmill] southwest of B<p>D[Wolf Pub] west of B<p>B&lt;-&quot;N&#x2F;S game trail path&quot;-&gt;D<p>[1] https:&#x2F;&#x2F;fossil-scm.org&#x2F;pikchr&#x2F;doc&#x2F;trunk&#x2F;homepage.md<p>[2] https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;26571628

1 comment

solardev8 个月前
Old MUDs come to mind, and seems like a modern take on their automappers would be something like Mudlet&#x27;s <a href="https:&#x2F;&#x2F;wiki.mudlet.org&#x2F;w&#x2F;Manual:Mapper" rel="nofollow">https:&#x2F;&#x2F;wiki.mudlet.org&#x2F;w&#x2F;Manual:Mapper</a>, which has a verbose but human readable XML format?<p><a href="https:&#x2F;&#x2F;wiki.mudlet.org&#x2F;w&#x2F;Manual:Mapper" rel="nofollow">https:&#x2F;&#x2F;wiki.mudlet.org&#x2F;w&#x2F;Manual:Mapper</a> <a href="https:&#x2F;&#x2F;forums.mudlet.org&#x2F;viewtopic.php?t=22957" rel="nofollow">https:&#x2F;&#x2F;forums.mudlet.org&#x2F;viewtopic.php?t=22957</a><p>Not quite as terse as your Mermaid-like syntax, unfortunately.<p>Also, in Mermaid, can&#x27;t you specify left&#x2F;right top&#x2F;bottom, etc.? <a href="https:&#x2F;&#x2F;mermaid.js.org&#x2F;syntax&#x2F;flowchart.html#direction-in-subgraphs" rel="nofollow">https:&#x2F;&#x2F;mermaid.js.org&#x2F;syntax&#x2F;flowchart.html#direction-in-su...</a>
评论 #41647091 未加载