【问题标题】:DOT notation rank not placing items on the same horizontal line/plane点符号等级未将项目放置在同一水平线/平面上
【发布时间】:2021-04-11 03:05:51
【问题描述】:

这就是我想要的:https://media-us.amboss.com/media/thumbs/big_58ac9ed16c2bf.jpg

这就是我所拥有的(现在只是第一部分):

digraph G {

"Palpable breast mass" -> "Age of patient?";
"Age of patient?" -> "Clinical assessment: probability of malignancy?" [label="< 30yo"];
"Clinical assessment: probability of malignancy?" -> "Reexamine 3-10 days after onset of menstruation" [label="Low"];
"Reexamine 3-10 days after onset of menstruation" -> "Ultrasound and/or FNA" [label="Suspicious mass"];
"Clinical assessment: probability of malignancy?" -> "Ultrasound and/or FNA" [label="High"];
"Ultrasound and/or FNA" -> "Mammography" [label="No visualization possible"];
"Age of patient?" -> "Mammography" [label="> 30yo"];
"Mammography" -> "Ultrasound and/or FNA" [label="Inconclusive"];
{rank=1;
"Palpable breast mass";
}
{rank=2;
"Age of patient?";
}
{rank=3;
"Clinical assessment: probability of malignancy?";
}
{rank=4;
"Reexamine 3-10 days after onset of menstruation";
"Ultrasound and/or FNA";
"Mammography";
}
}

但是,排名并没有按照我想要的方式匹配。我希望rank=4 中的所有项目都位于同一水平线/平面上。下面是它的样子:

【问题讨论】:

    标签: graph graphviz dot


    【解决方案1】:

    没关系,我意识到我需要在每个括号中写 rank=same 而不是实际值。像这样:

    {rank=same;
    "Palpable breast mass";
    }
    {rank=same;
    "Age of patient?";
    }
    {rank=same;
    "Clinical assessment: probability of malignancy?";
    }
    {rank=same;
    "Reexamine 3-10 days after onset of menstruation";
    "Ultrasound and/or FNA";
    "Mammography";
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多