omxGraphviz: rank = same for manifest variables

It would help dot when laying out RAM graphs if a line like this was added to the output of omxGraphviz

{ rank = same; visual ;cubes ;paper; general ; paragrap; sentence; numeric;series; arithmet}

i.e., {rank=same;
}

rank could also be max to force the measured boxes to the bottom of the graph

Tim, go ahead and try to make this change to the svn repository. If you need help, I'll give you a hand.

OK: done. and learned how to play with private functions using a helper from R.utils...

require(R.utils)
reassignInPackage("writeDotFile", pkgName="OpenMx", my.writeDotFile);

rank added using

rankString <- paste(graph@manifestVars, collapse="; ")
rankString <-paste("{ rank = max;", rankString, "}", collapse="") # force manifests to bottom of graph
outputLines <-append(outputLines, rankString)

Also added some comments to the output .dot file, i.e.,

outputLines <-append(outputLines, "/* Manifest Variables*/")

Could you run the script GraphvizTest.R in the models/passing directory, and then take a look at the output generated in the models/passing/temp-files directory? If that looks correct, copy temp-files/one-factor-generated.dot to data/one-factor-reference.dot and then commit the update to one-factor-reference.dot. That will ensure the test suite is working for the omxGraphviz() function.

did this get pushed up? if so can close...