Is there dash line border for a node?

Can I set the node’s border to dash line?

And can I set a single link to dash line with different proportion(like follows)?
dash line link: