add_root_row function

Add a row to the edges list to represent the root node (if not already present).