factored out Rgraphviz issue #4