gvInclude.gvpr provides the equivalent of the #include feature of the C pre-processor, without needing any non-Graphviz programs (it does use the Graphviz gvpr program) (see https://www.graphviz.org/pdf/gvpr.1.pdf)
usage: gvpr -aFmyfile.gv
an example of myfile.gv:
graph {
AA -- BB
#include "includeMe1"
a -- b
#include "includeMe2"
b -- c
#include "includeMe1"
e -- f
#include "includeMe2"
AA -- BB -- CC
EE -- { FF GG }
}
gvInclude.gvpr can be found here: gvInclude.gvpr - Graphviz #include feature ยท GitHub
p.s. this code is only lightly tested. Please report bugs, questions, or requests