Add support for trees, acyclic graphs where all but the unique root vertex has associated with it a parent edge for which it is the head (for out-trees) or tail (for in-trees). This should take the form of two new traits, Out_tree and In_tree. These concepts can be extended to forests by allowing arbitrarily many roots. The outputs of shortest_paths_from and shortest_paths_to should then satisfy Out_tree and In_tree, respectively.
Add support for trees, acyclic graphs where all but the unique root vertex has associated with it a parent edge for which it is the head (for out-trees) or tail (for in-trees). This should take the form of two new traits,
Out_tree
andIn_tree
. These concepts can be extended to forests by allowing arbitrarily many roots. The outputs ofshortest_paths_from
andshortest_paths_to
should then satisfyOut_tree
andIn_tree
, respectively.