Path Group Length

Path Group Length#

https://github.com/user-attachments/assets/caae3331-5bf7-47d4-8363-8bdd4474fb2d

Functionality#

This node calculates length of a paths composed from edges. Edges can be grouped.

Inputs#

  • Vertices

  • Edges

  • Groups - grouped name of every edge (numbers int or float or strings). If len of group if less than length of edges then group will extend to the length of edges. ex.: group: [[“K19”]], edges: [[ [0 1], [1,2], [2,3] ]] then group get: [[“K19”, “K19”, “K19”,]]

Outputs#

  • Segments - length of every segment

  • Group of Segments - rearrange groups per edges

  • Length - summ of Length of group of Segments

  • Group of Length - What group assingned to every Length

  • Merged Length - Merged length in all objects with equals group number/name

  • Grouped of Merged Length - What group associated with Merged Length

if Groups are not connected then default group is 0.

Examples#

Show length of edges with groups:

https://github.com/user-attachments/assets/33372d19-cfb5-4566-a5ba-26aff5c72ad7