Class PathUtils


  • public class PathUtils
    extends Object
    Path utilities
    Author:
    markr
    • Constructor Detail

      • PathUtils

        public PathUtils()
    • Method Detail

      • getNodePathString

        public static String getNodePathString​(DirectedPath path,
                                               Function<Vertex,​Object> idMapper)
        Returns the path as a String of comma-separated node Ids using the id mapper
        Parameters:
        path - to extract from
        idMapper - lambda function to get the required Id value
        Returns:
        the path as a String of comma-separated node Id or external Id values
      • getEdgeSegmentPathString

        public static String getEdgeSegmentPathString​(DirectedPath path,
                                                      Function<EdgeSegment,​Object> idGetter)
        Returns the path as a String of comma-separated edge segment Id or external Id values
        Parameters:
        path - to extract from
        idGetter - lambda function to get the required Id value
        Returns:
        the path as a String of comma-separated link segment Id or external Id values