Hi,
You could use the function called digraph to create a directed graph assinging vertices in hierarchy. Then you could use plot function to plot the graph.
Refer to the following link to know more about digraph function and also have a look at the examples in the documentation.
To know more about plot function you could refer to the following link.