digraph G { rankdir="LR"; label = "label demo"; subgraph cluster0 { a; b; a->b; label = "cluster0"; labelloc="top"; labeljust="left"; } subgraph cluster1 { c; d; c->d; label = "cluster1"; } }