我试图想象点语言中相当复杂的结构。 因为记录很大,我想用多行来编写代码。所以而不是:
A11[label="A.11 Access Control|{A.11.1 Business requirements for access control|A.11.2 User access management}|{A.11.3 User responsibilities|A.11.4 Network access control}|{A.11.5 Operating System access control|A.11.6 Application & information access control}|A.11.7 Mobile computing & teleworking"];
我想输入它有点像这样
A11[label="A.11 Access Control|
{A.11.1 Business requirements for access control|A.11.2 User access management}|
{A.11.3 User responsibilities|A.11.4 Network access control}|
{A.11.5 Operating System access control|A.11.6 Application & information access control}|
A.11.7 Mobile computing & teleworking"];
不幸的是,dot的解析器抱怨“字符串运行过去的行结束”或类似的东西。有谁知道如何在代码中表示换行符?我在行尾尝试了\
,但似乎没有用。
提前致谢
答案 0 :(得分:5)
我猜你想要这样的东西:
graph G{
A11[label="A.11 Access Control|\n\
{A.11.1 Business requirements for access control|A.11.2 User access management}|\n\
{A.11.3 User responsibilities|A.11.4 Network access control}|\n\
{A.11.5 Operating System access control|A.11.6 Application & information access control}|\n\
A.11.7 Mobile computing & teleworking"];
}
你也可以这样做
label = "line1\n" +
"line2\n" + ...