譬如下面的输出图,我需要强制,style="dashed" 指向的节点 User,在 AUTH 的前面
digraph g {
rankdir = LR;
node [shape=box];
subgraph "前端" {
"登录" -> "AUTH" [ ]
"退出" -> "AUTH" [ ]
"AUTH" -> "JWTAuth" [ ]
"AUTH" -> "SESSIONAuth" [ ]
"AUTH" -> "User" [ style="dashed" ]
"用户名" -> "User" [ ]
}
}
1
zix 2019-08-28 08:31:40 +08:00
用 rank=same
digraph g { rankdir = LR; node [shape=box]; subgraph "前端" { "登录" -> "AUTH" [ ] "退出" -> "AUTH" [ ] "AUTH" -> "JWTAuth" [ ] "AUTH" -> "SESSIONAuth" [ ] "AUTH" -> "User" [ style="dashed" ] "用户名" -> "User" [ ] {rank=same "登录" "退出" "User"} } } |