这就是我要做的: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中的所有项目都在同一水平线/平面上。下面是它看起来是什么样子:

发布于 2021-01-05 19:05:31
不要紧,我意识到我需要在每个括号中编写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";
}

https://stackoverflow.com/questions/65577636
复制相似问题