Hi @dina_dodo Can you use two From-To lines to get the two paths? Or do you want the two shortest paths from a single From-To line? You can break up paths into line segments with a PathSplitter.
If a list was created with the ShortestPathFinder then you could use a ListIndexer to get the attributes for each element by indexing with the _segment_number attribute.
Hi @dina_dodo Can you use two From-To lines to get the two paths? Or do you want the two shortest paths from a single From-To line? You can break up paths into line segments with a PathSplitter.
If a list was created with the ShortestPathFinder then you could use a ListIndexer to get the attributes for each element by indexing with the _segment_number attribute.
i have point it has two paths from another point ,i would like to have both paths .
from to line ,i build a line between two points but after i ued short path finder ,output only one path ,i want to get the another path also between two point .so i found the another path in not used in short path finder transformer and i tried to connect not used as input for network and from to line the base again that i used at first short path finder ,it did not work .so how could i get two paths ,when the connection between two point more than one path .maximum only two .
i have point it has two paths from another point ,i would like to have both paths .
from to line ,i build a line between two points but after i ued short path finder ,output only one path ,i want to get the another path also between two point .so i found the another path in not used in short path finder transformer and i tried to connect not used as input for network and from to line the base again that i used at first short path finder ,it did not work .so how could i get two paths ,when the connection between two point more than one path .maximum only two .
Hi @dina_dodo It's not clear to me what you're trying to do but I think that you just need to create two From-To lines. Perhaps the FromToBuilder will help. Also be sure that the ends from the From-To lines are within tolerance of the ends of lines in your network.
Hi @dina_dodo It's not clear to me what you're trying to do but I think that you just need to create two From-To lines. Perhaps the FromToBuilder will help. Also be sure that the ends from the From-To lines are within tolerance of the ends of lines in your network.
i have two points as the picture ,red point and blue point and after i used one shortpathfinder as output one path i need to get also the another path .i hope,the picture explained my problem well .thanks for replying
i want to check as first if any point has two path so i want to get both paths ,if one path so it is okey,in my case maximum two paths for some point
Hi @dina_dodo, if you need to find the second path which is the shortest path in the network excluding lines used for the first shortest path, you can get the two paths using two ShortestPathFinders, as in:
You can find all paths in a Network using a Solution similar to here:
https://knowledge.safe.com/questions/110637/how-to-find-the-all-paths-longest-and-shortest-bet.html
I've also trialled some elements of a Solution that integrate in the parts of a Network Graphing/Pathing Python module and library published here which has worked successfully on small, multi-pathed networks, but still getting familiar with the huge array of functions exposed in it and what they do, but this exposes the possibility of doing it in through PythonCaller.
https://networkx.github.io/documentation/stable/index.html
You can find all paths in a Network using a Solution similar to here:
https://knowledge.safe.com/questions/110637/how-to-find-the-all-paths-longest-and-shortest-bet.html
I've also trialled some elements of a Solution that integrate in the parts of a Network Graphing/Pathing Python module and library published here which has worked successfully on small, multi-pathed networks, but still getting familiar with the huge array of functions exposed in it and what they do, but this exposes the possibility of doing it in through PythonCaller.
https://networkx.github.io/documentation/stable/index.html
Hi @dina_dodo, were you able to solve this issue?