graphvizdot

Is it possible to have a dash in the node name?


Is it possible to have a dash in the node name? I tried escaping with backslash, but it didn't work.

Example:

digraph test {
    some-name -> other-name;
}

Solution

  • Just include the node names in double quotes like this:

    digraph test {
        "some-name" -> "other-name";
    }