fun concatenatePaths(path1: Path, path2: Path): Path?
(source)
Concatenate two given paths.
Example: Let's say we've got two paths: Luuk - worksFor - Drieam
and Drieam - earns - Money
.
So our result should be: Luuk - worksFor - Drieam - earns - Money
.
We have to strip out once occurrence of Drieam
, otherwise we'll have a duplicate Node.
path1
- The first part of the to-be concatenated path.
path2
- The last part of the to-be concatenated path.
Return
The concatenation of the two given paths.