dot: dash in name
Just include the node names in double quotes like this:
digraph test {
"some-name" -> "other-name";
}
Since I faced the problem, the same goes for subgraphes names:
digraph G {
{node "A-1"}
{node "B"}
subgraph "A-1B" {edge [dir=none]"A-1" -> "B"}
}