I'm working with the NautyGraphs package in Macaulay2, and I use it to generate all the undirected trees with a fixed number of vertices.
For instance:
i23 : g = generateGraphs(10, OnlyTriangleFree => true, OnlyConnected => true);
i24 : stringToGraph g_5
outputs something like:
Question: I would like to transform each graph in into a directed rooted tree with root at vertex . That is, to get the output