{"id":2096,"date":"2026-05-26T09:02:41","date_gmt":"2026-05-26T09:02:41","guid":{"rendered":"https:\/\/www.vpascode.com\/cn\/docs\/uncategorized\/graphviz-cluster-syntax-guide\/"},"modified":"2026-05-26T09:02:41","modified_gmt":"2026-05-26T09:02:41","slug":"graphviz-cluster-syntax-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/","title":{"rendered":"Graphviz \u96c6\u7fa4\u8bed\u6cd5\u6307\u5357\uff1a\u5d4c\u5957\u8fb9\u754c\u6620\u5c04"},"content":{"rendered":"<article>\u5728\u5927\u89c4\u6a21\u57fa\u7840\u8bbe\u65bd\u6620\u5c04\u4e2d\uff0c\u5e73\u9762\u56fe\u901a\u5e38\u65e0\u6cd5\u4f20\u8fbe\u7cfb\u7edf\u7684\u903b\u8f91\u7ed3\u6784\u3002\u5f53\u4f60\u9700\u8981\u8868\u793a\u201c\u5185\u90e8\u4e0e\u5916\u90e8\u201d\u3001\u4e91\u8fb9\u754c\u6216\u670d\u52a1\u7ea7\u522b\u7684\u9694\u79bb\u65f6\uff0c\u4f60\u9700\u8981<strong>\u96c6\u7fa4<\/strong>\u3002\u5728 Graphviz \u4e2d\uff0c\u96c6\u7fa4\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u5b50\u56fe\u5f62\u5f0f\uff0c\u5b83\u6307\u793a\u6e32\u67d3\u5f15\u64ce\u5728\u4e00\u7ec4\u7279\u5b9a\u8282\u70b9\u5468\u56f4\u7ed8\u5236\u4e00\u4e2a\u8fb9\u754c\u6846\uff0c\u4ece\u800c\u6709\u6548\u5730\u4e3a\u903b\u8f91\u7cfb\u7edf\u7ec4\u4ef6\u521b\u5efa\u4e00\u4e2a\u89c6\u89c9\u5bb9\u5668\u3002<\/p>\n<h2>DOT \u96c6\u7fa4\u7684\u673a\u5236<\/h2>\n<p>DOT \u8bed\u8a00\u5bf9\u5b50\u56fe\u548c\u96c6\u7fa4\u7684\u5904\u7406\u65b9\u5f0f\u4e0d\u540c\u3002\u8981\u521b\u5efa\u4e00\u4e2a<strong>\u96c6\u7fa4<\/strong>\uff0c\u4f60\u7684\u5b50\u56fe\u6807\u8bc6\u7b26<em>\u5fc5\u987b<\/em>\u4ee5\u524d\u7f00<code>cluster_<\/code>\u5f00\u59cb\u3002\u8fd9\u662f\u4e00\u4e2a\u5f3a\u5236\u6027\u7684\u8bed\u6cd5\u8981\u6c42\uff1b\u5982\u679c\u4f60\u7701\u7565\u4e86\u8fd9\u4e2a\u524d\u7f00\uff0c\u5e03\u5c40\u5f15\u64ce\u4f1a\u5c06\u8be5\u7ec4\u89c6\u4e3a\u7b80\u5355\u7684\u903b\u8f91\u5206\u7ec4\uff0c\u800c\u4e0d\u4f1a\u663e\u793a\u89c6\u89c9\u8fb9\u6846\u6216\u80cc\u666f\u586b\u5145\u3002<\/p>\n<h3>\u4e3a\u4ec0\u4e48\u96c6\u7fa4\u5bf9\u67b6\u6784\u81f3\u5173\u91cd\u8981<\/h3>\n<p>\u96c6\u7fa4\u5145\u5f53\u4f60\u6587\u6863\u7684\u201c\u4f5c\u7528\u57df\u201d\u3002\u901a\u8fc7\u5c06\u7ec4\u4ef6\u5d4c\u5957\u5728\u96c6\u7fa4\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5411\u8bfb\u8005\u4f20\u8fbe\u8fd9\u4e9b\u5143\u7d20\u5171\u4eab\u4e00\u4e2a\u5171\u540c\u7684\u73af\u5883\u3001\u5b89\u5168\u533a\u57df\u6216\u751f\u547d\u5468\u671f\u3002\u8fd9\u5bf9\u4e8e\u4ee5\u4e0b\u60c5\u51b5\u81f3\u5173\u91cd\u8981\uff1a<\/p>\n<ul>\n<li><strong>\u591a\u4e91\u53ef\u89c6\u5316\uff1a<\/strong>\u6309 VPC\u3001\u533a\u57df\u6216\u53ef\u7528\u6027\u533a\u57df\u5bf9\u8282\u70b9\u8fdb\u884c\u5206\u7ec4\u3002<\/li>\n<li><strong>\u5fae\u670d\u52a1\u9694\u79bb\uff1a<\/strong>\u5c55\u793a\u54ea\u4e9b\u670d\u52a1\u5c5e\u4e8e\u54ea\u4e2a\u529f\u80fd\u57df\u3002<\/li>\n<li><strong>\u5b89\u5168\u5ba1\u8ba1\uff1a<\/strong>\u76f4\u89c2\u5730\u5c55\u793a\u54ea\u4e9b\u7ec4\u4ef6\u4f4d\u4e8e\u53d7\u4fdd\u62a4\u7684\u8fb9\u754c\u5185\uff08\u4f8b\u5982\uff0c\u201cDMZ\u201d\u96c6\u7fa4\uff09\u3002<\/li>\n<\/ul>\n<h2>\u9ad8\u7ea7\u96c6\u7fa4\u914d\u7f6e<\/h2>\n<p>\u96c6\u7fa4\u652f\u6301 Graphviz \u7684\u5168\u90e8\u5c5e\u6027\uff0c\u5141\u8bb8\u4f60\u5bf9\u5bb9\u5668\u672c\u8eab\u8fdb\u884c\u6837\u5f0f\u8bbe\u7f6e\u3002\u4f60\u53ef\u4ee5\u8bbe\u7f6e\u80cc\u666f\u989c\u8272\u3001\u8fb9\u6846\u6837\u5f0f\u548c\u63cf\u8ff0\u6027\u6807\u7b7e\uff0c\u4ee5\u786e\u4fdd\u96c6\u7fa4\u6210\u4e3a\u6587\u6863\u7684\u6b63\u5f0f\u7ec4\u6210\u90e8\u5206\u3002<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Graphviz<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#graphviz:eNp1kc1qwzAQhO+FvsPic0Pac3AhpKGX\/hgC7SEUs5Y2tkCWhFZOMCXvXrmKadq4e53R+BuPVLVH18DaBPLOK6aVtp2Ez+sriDefw6O2FWpINqYQlKk5qcK2znZG5sF3tBjMLySIGX0PO+uBZE0MwQI7NFBROBAZELrj+LGYkVK4q1L4SSjxwOXeiZFhOI0VacghW75voPBWdiIoa+CtWGWLHxuHXlO07ZTWJM8EYXXkyUGrugm1p\/5MM1YSbL+f5unhTfLnh0YF+liMoMNlS+fKDfl95Ly9y2B2D9kDBqyQqSy8amP3kej4b0NrSuepnWz4amZF1OISDE9Uo+jhYbKkRG4mS1Y6rvELOuWUz6jMzmNLF4RxunUcC4S3zHHgkRSqYV\/0ik6TT\/W\/SIetbghl\/qfu8CePX1z0ujI=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u5728 VPasCode \u4e2d\u7f16\u8f91 Graphviz<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Graphviz<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#graphviz:eNp1UU1Lw0AQvQv+hyVnRT2XCKV6UygU9FAkbJJpEth8sElaghQsWg9+nSxFW\/Ai2oOWCqK2YPpnkib9F24MwWrrnJadN\/PemydrCsWWirYNB6hFNRsKxHRldLi8hFitraGw2QtfjsKOH\/f96LOf\/kumbpmuIfMOdSGXwKLrXjC6iv1h\/N6L386mndPIvw+G59P2a3R7Eo6b8UMj25DusF0x5ZaIazN2AddsoWpJGXdSBItAEI+4\/H6JUdwFo0e0VyxwuR+I7XgEGKSiEQLyTEMyiUlZg2iK6igUvJmeYcqAyt+jfDq4kuL5mqo5cJDLRCbF5S1LKAGtMo3rGxxa3UTcFnawiG0QilTTMfUyRfV\/3ZmGYFHQF7qbdJ\/C7mDaaEetm0lrMLnsBx\/P4fh4kU8Z2+pCnyJhUfzSvQMKljxhF2tGhWId5kSy3GbjYulFrQsWF3ukgEXW57aiMlEBy\/wfp8kR618q8Npm\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Graphviz in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-graphviz\"><code class=\"language-graphviz\" data-language=\"graphviz\" class=\"language-graphviz\">digraph EnterpriseCloud {\r\n    \/\/ \u5168\u5c40\u56fe\u8bbe\u7f6e\r\n    compound=true; \/\/ \u7528\u4e8e\u8fb9\u8de8\u8d8a\u96c6\u7fa4\u4e4b\u95f4\u7684\u5fc5\u8981\u8bbe\u7f6e\r\n\r\n    subgraph cluster_aws_vpc {\r\n        label = \"AWS \u751f\u4ea7 VPC\";\r\n        style = filled;\r\n        color = lightgrey;\r\n        node [style=filled, color=white];\r\n\r\n        \"App_Server_01\" -&gt; \"Database_Primary\";\r\n    }\r\n\r\n    subgraph cluster_on_prem {\r\n        label = \"\u672c\u5730\u9057\u7559\u6570\u636e\u4e2d\u5fc3\";\r\n        style = dashed;\r\n        color = blue;\r\n\r\n        \"Legacy_Mainframe\";\r\n    }\r\n\r\n    \/\/ \u8de8\u8d8a\u96c6\u7fa4\u8fb9\u754c\u7684\u8fb9\r\n    \"App_Server_01\" -&gt; \"Legacy_Mainframe\" [lhead=cluster_on_prem];\r\n}<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#graphviz:eNp1UU1Lw0AQvQv+hyVnRT2XCKV6UygU9FAkbJJpEth8sElaghQsWg9+nSxFW\/Ai2oOWCqK2YPpnkib9F24MwWrrnJadN\/PemydrCsWWirYNB6hFNRsKxHRldLi8hFitraGw2QtfjsKOH\/f96LOf\/kumbpmuIfMOdSGXwKLrXjC6iv1h\/N6L386mndPIvw+G59P2a3R7Eo6b8UMj25DusF0x5ZaIazN2AddsoWpJGXdSBItAEI+4\/H6JUdwFo0e0VyxwuR+I7XgEGKSiEQLyTEMyiUlZg2iK6igUvJmeYcqAyt+jfDq4kuL5mqo5cJDLRCbF5S1LKAGtMo3rGxxa3UTcFnawiG0QilTTMfUyRfV\/3ZmGYFHQF7qbdJ\/C7mDaaEetm0lrMLnsBx\/P4fh4kU8Z2+pCnyJhUfzSvQMKljxhF2tGhWId5kSy3GbjYulFrQsWF3ukgEXW57aiMlEBy\/wfp8kR618q8Npm\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Graphviz in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#graphviz:eNp1kc1qwzAQhO+FvsPic0Pac3AhpKGX\/hgC7SEUs5Y2tkCWhFZOMCXvXrmKadq4e53R+BuPVLVH18DaBPLOK6aVtp2Ez+sriDefw6O2FWpINqYQlKk5qcK2znZG5sF3tBjMLySIGX0PO+uBZE0MwQI7NFBROBAZELrj+LGYkVK4q1L4SSjxwOXeiZFhOI0VacghW75voPBWdiIoa+CtWGWLHxuHXlO07ZTWJM8EYXXkyUGrugm1p\/5MM1YSbL+f5unhTfLnh0YF+liMoMNlS+fKDfl95Ly9y2B2D9kDBqyQqSy8amP3kej4b0NrSuepnWz4amZF1OISDE9Uo+jhYbKkRG4mS1Y6rvELOuWUz6jMzmNLF4RxunUcC4S3zHHgkRSqYV\/0ik6TT\/W\/SIetbghl\/qfu8CePX1z0ujI=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>\u5728 VPasCode \u4e2d\u7f16\u8f91 Graphviz<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"EnJEsqb\"><img fetchpriority=\"high\" alt=\"\" class=\"alignnone size-full wp-image-657\" decoding=\"async\" fetchpriority=\"high\" height=\"208\" sizes=\"(max-width: 613px) 100vw, 613px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1905889f5ff.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1905889f5ff.png 613w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1905889f5ff-300x102.png 300w\" width=\"613\"\/><\/p>\n<h2>\u6218\u7565\u6027\u7684\u96c6\u7fa4\u6700\u4f73\u5b9e\u8df5<\/h2>\n<ul>\n<li><strong>\u542f\u7528<code>compound=true<\/code>:<\/strong> \u5728\u4f7f\u7528\u96c6\u7fa4\u65f6\uff0c\u8bf7\u59cb\u7ec8\u5728\u6709\u5411\u56fe\u7684\u9876\u5c42\u8bbe\u7f6e <code>compound=true<\/code>\u3002\u8fd9\u5c06\u542f\u7528 <code>lhead<\/code>\uff08\u903b\u8f91\u5934\uff09\u548c <code>ltail<\/code>\uff08\u903b\u8f91\u5c3e\uff09\u5c5e\u6027\uff0c\u4f7f\u60a8\u80fd\u591f\u7ed8\u5236\u4ece\u96c6\u7fa4\u6846\u8fb9\u7f18\u5f00\u59cb\u6216\u7ed3\u675f\u7684\u8fb9\uff0c\u800c\u4e0d\u662f\u5728\u6846\u5185\u90e8\u3002<\/li>\n<li><strong>\u4fdd\u6301\u89c6\u89c9\u5c42\u6b21\u7ed3\u6784\uff1a<\/strong> \u4e00\u81f4\u5730\u4f7f\u7528\u989c\u8272\u548c\u6837\u5f0f\u3002\u4f8b\u5982\uff0c\u4e3a\u201c\u4e91\u201d\u96c6\u7fa4\u4f7f\u7528\u67d4\u548c\u7684\u80cc\u666f\u586b\u5145\uff0c\u4e3a\u201c\u9057\u7559\u201d\u6216\u201c\u4e34\u65f6\u201d\u57fa\u7840\u8bbe\u65bd\u4f7f\u7528\u865a\u7ebf\u8fb9\u6846\u3002\u8fd9\u4f7f\u7528\u6237\u80fd\u591f\u5feb\u901f\u6d4f\u89c8\u56fe\u8868\uff0c\u5e76\u7acb\u5373\u7406\u89e3\u67b6\u6784\u5e03\u5c40\u3002<\/li>\n<li><strong>\u4e0d\u8981\u8fc7\u5ea6\u5d4c\u5957\uff1a<\/strong> \u5c3d\u7ba1 Graphviz \u652f\u6301\u96c6\u7fa4\u7684\u6df1\u5c42\u5d4c\u5957\uff08\u96c6\u7fa4\u5185\u90e8\u5d4c\u5957\u96c6\u7fa4\uff09\uff0c\u4f46\u5e94\u5c3d\u91cf\u5c06\u5d4c\u5957\u5c42\u7ea7\u9650\u5236\u5728\u4e24\u5230\u4e09\u5c42\u4ee5\u5185\u3002\u8fc7\u5ea6\u5d4c\u5957\u4f1a\u5bfc\u81f4\u590d\u6742\u7684\u8fb9\u8def\u7531\u8ba1\u7b97\uff0c\u4f7f\u56fe\u8868\u96be\u4ee5\u7406\u89e3\u3002<\/li>\n<li><strong>\u6807\u7b7e\u662f\u5fc5\u9700\u7684\uff1a<\/strong> \u6c38\u8fdc\u4e0d\u8981\u8ba9\u96c6\u7fa4\u672a\u547d\u540d\u3002\u4e00\u4e2a\u672a\u6807\u8bb0\u7684\u8fb9\u754c\u6846\u662f\u6a21\u7cca\u7684\uff1b\u800c\u4e00\u4e2a\u5e26\u6807\u7b7e\u7684\u96c6\u7fa4\u5219\u80fd\u4f5c\u4e3a\u5176\u5185\u90e8\u6240\u6709\u5185\u5bb9\u7684\u660e\u786e\u4e0a\u4e0b\u6587\u6807\u8bb0\u3002<\/li>\n<\/ul>\n<p> \u638c\u63e1\u96c6\u7fa4\u8bed\u6cd5\u53ef\u5c06\u60a8\u7684\u56fe\u8868\u4ece\u7b80\u5355\u7684\u8fde\u63a5\u8282\u70b9\u5217\u8868\u8f6c\u53d8\u4e3a\u4e30\u5bcc\u4e14\u5177\u6709\u4e0a\u4e0b\u6587\u610f\u8bc6\u7684\u67b6\u6784\u84dd\u56fe\u3002\u901a\u8fc7\u6e05\u6670\u5730\u5b9a\u4e49\u8fb9\u754c\uff0c\u60a8\u4e3a\u5229\u76ca\u76f8\u5173\u8005\u63d0\u4f9b\u4e86\u7406\u89e3\u590d\u6742\u7cfb\u7edf\u4ea4\u4e92\u6240\u9700\u7684\u6e05\u6670\u5ea6\u3002<\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5927\u89c4\u6a21\u57fa\u7840\u8bbe\u65bd\u6620\u5c04\u4e2d\uff0c\u5e73\u9762\u56fe\u901a\u5e38\u65e0\u6cd5\u4f20\u8fbe\u7cfb\u7edf\u7684\u903b\u8f91\u7ed3\u6784\u3002\u5f53\u4f60\u9700\u8981\u8868\u793a\u201c\u5185\u90e8\u4e0e\u5916&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":3,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"ld_collection":[14],"class_list":["post-2096","ld_docs","type-ld_docs","status-publish","hentry","ld_collection-vpascode-docs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Graphviz Cluster Guide | VPasCode Text to Diagram Tool<\/title>\n<meta name=\"description\" content=\"Group related nodes into subgraphs using Graphviz clusters in VPasCode, a free web-based diagram-as-code tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Graphviz Cluster Guide | VPasCode Text to Diagram Tool\" \/>\n<meta property=\"og:description\" content=\"Group related nodes into subgraphs using Graphviz clusters in VPasCode, a free web-based diagram-as-code tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1905889f5ff.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/graphviz-cluster-syntax-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/graphviz-cluster-syntax-guide\\\/\",\"name\":\"Graphviz Cluster Guide | VPasCode Text to Diagram Tool\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/graphviz-cluster-syntax-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/graphviz-cluster-syntax-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/img_6a1905889f5ff.png\",\"datePublished\":\"2026-05-26T09:02:41+00:00\",\"description\":\"Group related nodes into subgraphs using Graphviz clusters in VPasCode, a free web-based diagram-as-code tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/graphviz-cluster-syntax-guide\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/graphviz-cluster-syntax-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/graphviz-cluster-syntax-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/img_6a1905889f5ff.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/img_6a1905889f5ff.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/vpascode-docs\\\/graphviz-cluster-syntax-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Graphviz \u96c6\u7fa4\u8bed\u6cd5\u6307\u5357\uff1a\u5d4c\u5957\u8fb9\u754c\u6620\u5c04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/cn\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Graphviz Cluster Guide | VPasCode Text to Diagram Tool","description":"Group related nodes into subgraphs using Graphviz clusters in VPasCode, a free web-based diagram-as-code tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/","og_locale":"zh_CN","og_type":"article","og_title":"Graphviz Cluster Guide | VPasCode Text to Diagram Tool","og_description":"Group related nodes into subgraphs using Graphviz clusters in VPasCode, a free web-based diagram-as-code tool.","og_url":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/","og_site_name":"VPasCode","og_image":[{"url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1905889f5ff.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/","url":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/","name":"Graphviz Cluster Guide | VPasCode Text to Diagram Tool","isPartOf":{"@id":"https:\/\/www.vpascode.com\/cn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1905889f5ff.png","datePublished":"2026-05-26T09:02:41+00:00","description":"Group related nodes into subgraphs using Graphviz clusters in VPasCode, a free web-based diagram-as-code tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1905889f5ff.png","contentUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1905889f5ff.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/cn\/docs\/vpascode-docs\/graphviz-cluster-syntax-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/cn\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/cn\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Graphviz \u96c6\u7fa4\u8bed\u6cd5\u6307\u5357\uff1a\u5d4c\u5957\u8fb9\u754c\u6620\u5c04"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/cn\/#website","url":"https:\/\/www.vpascode.com\/cn\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/cn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/cn\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/cn\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.vpascode.com\/cn\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/cn\/wp-content\/uploads\/sites\/3\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/cn\/wp-content\/uploads\/sites\/3\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/cn\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/ld_docs\/2096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/users\/4"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/media?parent=2096"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/cn\/wp-json\/wp\/v2\/ld_collection?post=2096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}