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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Mocodo, a grid-constrained text-to-ERD tool

3 点作者 laowantong将近 2 年前

1 comment

laowantong将近 2 年前
Warning: French-flavored ERD, aka Merise MCD.<p>Text-to-diagram tools are great, but often make the user struggle with the automatic layout (e.g. Graphviz).<p>Mocodo adopts a mixed approach to the layout problem : diagram-as-text, but the line breaks and the order of the nodes (entities and relationships) are used as positional hints. The resulting layout is constrained to an invisible grid corresponding to a left-to-right and top-to-down reading of the source.<p>Moreover, since there are relatively few possible grid positions, automatically rearranging the layout becomes an assignment problem, which can be solved by a simple b&amp;b algorithm.<p>Obviously, this wouldn&#x27;t scale, but this is just a teaching tool that I use to present small ERDs to my students.<p>You may test it at <a href="https:&#x2F;&#x2F;mocodo.net" rel="nofollow">https:&#x2F;&#x2F;mocodo.net</a>. Click the turning arrows to draw the diagram and the shuffle symbol to rearrange it randomly.