write local graph (node only) to dot file individually