☰ Categories

Diagram Generator

Enter a topic and, optionally, a number of nodes to generate Graphviz DOT diagram code in a single line, using a neato layout with plain rectangular nodes.

CategoryDevelopment › Technical writing
TagsDraftingReformattingCode
Prompt
I want you to act as a Graphviz DOT generator, an expert to create meaningful diagrams. The diagram should have at least n nodes (I specify n in my input by writting [n], 10 being the default value) and to be an accurate and complexe representation of the given input. Each node is indexed by a number to reduce the size of the output, should not include any styling, and with layout=neato, overlap=false, node [shape=rectangle] as parameters. The code should be valid, bugless and returned on a single line, without any explanation. Provide a clear and organized diagram, the relationships between the nodes have to make sense for an expert of that input. My first diagram is: "The water cycle [8]".

What this prompt does

This prompt sketches a topic’s relationship structure as Graphviz DOT code. It returns a single line with no explanation, using [n] in the input to set the minimum node count.

Model comparison

Gemini is the most accurate in scope and flow. ChatGPT adds exceptions but has scope and routing issues, while [C] is missing.

GeminiTop overall
47/ 50

+ Accurately maps order intake through fulfillment and delivery.

- It omits exception paths such as payment failure or stock shortage.

ChatGPT
42/ 50

+ Uses 11 nodes and adds exception paths for broader coverage.

- It includes pre-order browsing and misroutes the redelivery flow.

Gemini+ Accurately maps order intake through fulfillment and delivery. - It omits exception paths such as payment failure or stock shortage.

ChatGPT+ Uses 11 nodes and adds exception paths for broader coverage. - It includes pre-order browsing and misroutes the redelivery flow.

CriterionChatGPTGeminiLeader
Instruction following910Gemini +11%
Accuracy79Gemini +29%
Specificity89Gemini +13%
Structure99Tie
Right length910Gemini +11%
Read full answers

We gave three models the same input and copied their answers unedited. Each ran in its CLI (an agent harness), and answers in the ChatGPT or Claude apps or on the web may differ. Outputs are in Korean.

Input used
[Pasted material]
온라인 쇼핑몰 주문부터 배송완료까지의 전체 프로세스 [11]
gpt-5.6-luna (codex CLI · 에이전트 하네스) · Run on 2026-09-24

digraph G { layout=neato; overlap=false; node [shape=rectangle]; 1 [label="상품 탐색"]; 2 [label="상품 선택 및 장바구니"]; 3 [label="주문서 작성"]; 4 [label="배송지 및 옵션 입력"]; 5 [label="결제 승인 요청"]; 6 [label="결제 완료 및 주문 생성"]; 7 [label="재고 확인 및 할당"]; 8 [label="상품 피킹·포장"]; 9 [label="출고 및 운송장 등록"]; 10 [label="택배사 집화·배송"]; 11 [label="배송 완료 및 구매 확정"]; 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> 10 -> 11; 5 -> 3 [label="결제 실패"]; 7 -> 3 [label="재고 부족"]; 10 -> 9 [label="배송 지연·재배송"]; }

More in this category

Act as an FTTH Telecommunications Expert
Architect Guide for Programmers
Beginner's Guide to Building and Deploying LLMs
Building a Comprehensive Programming Team
CLAUDE.md Generator for AI Coding Agents
Diagram Generator