Graphviz 如何在本地为子图设置节点?

Graphviz 如何在本地为子图设置节点?,graphviz,Graphviz,在下图中,我想表示流程的“结束”: 这是我的密码: digraph anim_retargetting { layout=dot compound=true fontname="Verdana" subgraph cluster_concept { style=filled color=lightgrey label = "Concept" edge [label=" needs"]

在下图中,我想表示流程的“结束”:

这是我的密码:

digraph anim_retargetting
{
    layout=dot
    compound=true
    fontname="Verdana"
    subgraph cluster_concept {
        style=filled
        color=lightgrey
        label = "Concept"

        edge [label=" needs"]
        node [shape=Msquare]
        "share skeleton animation" -> "same skeleton asset" -> "same skeleton"
    }

    subgraph cluster_setup_humanoid_rig
    {
        style=filled
        color=lightgrey
        label="Setup 'Humanoid Rig'"
        "Pick 'Humanoid Rig'"

        node [style=bold]
        "Pick 'Humanoid Rig'" -> "Mapping bones with Skeleton and Rig."
    }
    subgraph cluster_setup_the_rig_relationship
    {
        style=filled
        color=lightgrey
        label="Setup the rig relationship"
        "Are both skeletons the same?" -> "Yes"
        "Are both skeletons the same?" -> "No" ->
        "Pick 'UE4 Humanoid' skeleton" -> "Pick 'Mixamo' skeleton"

        node [style=bold]
        "Yes" -> "end"
        "Pick 'Mixamo' skeleton" -> "end"
    }

    subgraph cluster_main_flow
    {
        label="Share Same Skeleton Animation"
        "Setup the rig relationship" ->
        "Pick the target skeleton Animation: 'Idle_Rifle_Hip_Break1'" ->
        "Duplicate Asset and Retarget" ->
        "set 'Mixamo' skeleton as target" ->
        "'Select' to confirm"
        node [style=bold]
        "'Select' to confirm" -> "end"
    }
    "Setup the rig relationship" -> "Are both skeletons the same?" [dir=none lhead=cluster_setup_the_rig_relationship]
    "Pick 'UE4 Humanoid' skeleton" -> "Pick 'Humanoid Rig'" [dir=none lhead=cluster_setup_humanoid_rig]
    "Pick 'Mixamo' skeleton" -> "Pick 'Humanoid Rig'" [dir=none lhead=cluster_setup_humanoid_rig]
}
我在
cluster\u setup\u关系
cluster\u main\u流
子图中放置了2个“end”节点。 如何通过子图将2个“结束”节点与通过点连接的节点分开?
或者有其他方式来表达相同的概念吗?

在这两种情况下,节点都使用名称,并且名称也作为节点标识符。通过提供单独的标识符,您可以解决这个问题,我使用
emf
ere
作为标识符,并设置适当的标签:

digraph anim_retargetting
{
    layout=dot
    compound=true
    fontname="Verdana"
    subgraph cluster_concept {
        style=filled
        color=lightgrey
        label = "Concept"

        edge [label=" needs"]
        node [shape=Msquare]
        "share skeleton animation" -> "same skeleton asset" -> "same skeleton"
    }

    subgraph cluster_setup_humanoid_rig
    {
        style=filled
        color=lightgrey
        label="Setup 'Humanoid Rig'"
        "Pick 'Humanoid Rig'"

        node [style=bold]
        "Pick 'Humanoid Rig'" -> "Mapping bones with Skeleton and Rig."
    }
    subgraph cluster_setup_the_rig_relationship
    {
        style=filled
        color=lightgrey
        label="Setup the rig relationship"
        "Are both skeletons the same?" -> "Yes"
        "Are both skeletons the same?" -> "No" ->
        "Pick 'UE4 Humanoid' skeleton" -> "Pick 'Mixamo' skeleton"

        node [style=bold]
        ere[label="end"]
        "Yes" -> ere
        "Pick 'Mixamo' skeleton" -> ere
    }

    subgraph cluster_main_flow
    {
        label="Share Same Skeleton Animation"
        "Setup the rig relationship" ->
        "Pick the target skeleton Animation: 'Idle_Rifle_Hip_Break1'" ->
        "Duplicate Asset and Retarget" ->
        "set 'Mixamo' skeleton as target" ->
        "'Select' to confirm"
        node [style=bold]
        emf[label="end"]
        "'Select' to confirm" -> emf
    }
    "Setup the rig relationship" -> "Are both skeletons the same?" [dir=none lhead=cluster_setup_the_rig_relationship]
    "Pick 'UE4 Humanoid' skeleton" -> "Pick 'Humanoid Rig'" [dir=none lhead=cluster_setup_humanoid_rig]
    "Pick 'Mixamo' skeleton" -> "Pick 'Humanoid Rig'" [dir=none lhead=cluster_setup_humanoid_rig]
}