我想在氧气中画一个图。我使用了以下代码。
Dataset<Row> order = spark.sql("select o.orderID from order where where o.productPrice > 100");
Dataset<Row> customer= spark.sql("select c.orderID, c.name from customer);
Dataset<Row> joinedTable = order.join(customer, customer("orderID"));
我想在箭头旁边写点东西。我怎样才能做到这一点?我还希望来自节点/*! \mainpage
\dot
digraph example{
node[shape=record, fontname=Helvetica, fontsize=10];
b [label="thread_USRP" ];
c [label="worker1" ];
d [label="worker2" ];
e [label="threadUDP_Tx" ];
b -> c [arrowhead= "open", style = "solid"];
b -> d [arrowhead= "open", style = "solid"];
c -> e [arrowhead= "open", style = "solid"];
d -> e [arrowhead= "open", style = "solid"];
}
\enddot
*/
的箭头到达一条水平线,然后从水平线获得两个箭头,一个箭头指向节点b
,另一个箭头指向c
(类似树形图)。有人可以帮忙吗?
谢谢。
答案 0 :(得分:1)
正如Having graphs in main page of doxygen的注释所写,graphviz网站(http://graphviz.org/)具有很多信息。在图库(http://graphviz.org/gallery/)中,例如fsm(https://graphviz.gitlab.io/_pages/Gallery/directed/fsm.html),我们看到了一个不错的示例以及所使用的代码:
LR_0 -> LR_2 [ label = "SS(B)" ]
因此具有label
属性