d33tah
d33tah

Reputation: 11561

Graphviz dot language - drawing a single disconnected node/vertex?

I've been Googling for this for quite a while and yet I couldn't find anything. How do I draw a graph with Graphviz that has no vertices connected to it?

Upvotes: 5

Views: 1266

Answers (1)

marapet
marapet

Reputation: 56446

Like this:

digraph g {
  SingleNode;
}

Simply do not define any edges connecting the node to other nodes (SingleNode -> OtherNode).

Upvotes: 8

Related Questions