I use dot language to draw a simple graph which contains only one node and an edge point to this node. I came up with a way to do so:
digraph dot {
n0 [label= "", shape=none]
n0 -> n1
}
This implementation create a blank in the top of graph. So how to remove this blank? In other words, are there any better implementation?
I came up with another better solution, which is setting the "none" node to a point. Hope you guys provide a more elegant way.
digraph dot {
n0 [label= "", shape=none,height=.0,width=.0]
n0 -> n1
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With