LinkGraphFindAllPaths Method (IServiceProvider, IServiceProvider, LinkGraphDirection, Int32) |
Finds all paths between two objects. The first returned path is the shortest and successive paths are
arranged in increasing order of distance.
Namespace:
AGI.Foundation.Access
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public LinkPath[] FindAllPaths(
IServiceProvider initial,
IServiceProvider final,
LinkGraphDirection direction,
int maximumLength
)
Public Function FindAllPaths (
initial As IServiceProvider,
final As IServiceProvider,
direction As LinkGraphDirection,
maximumLength As Integer
) As LinkPath()
public:
array<LinkPath^>^ FindAllPaths(
IServiceProvider^ initial,
IServiceProvider^ final,
LinkGraphDirection direction,
int maximumLength
)
member FindAllPaths :
initial : IServiceProvider *
final : IServiceProvider *
direction : LinkGraphDirection *
maximumLength : int -> LinkPath[]
Parameters
- initial
- Type: SystemIServiceProvider
The source object. - final
- Type: SystemIServiceProvider
The destination object. - direction
- Type: AGI.Foundation.AccessLinkGraphDirection
The direction of the signal. If this parameter is Transmit, the
initial object is transmitting to the final object and all links
along the way must be in the transmit direction. If this parameter is Receive,
the final object is receiving from the final object and all
links along the way must be in the receive direction. If this parameter is Ignore,
the signal direction is ignored and links in either direction can be traversed.
- maximumLength
- Type: SystemInt32
The maximum length of paths to explore. The length of a path is the number of links in the path.
Return Value
Type:
LinkPath
A list of paths between the objects, or
if either object is not in the graph.
Each path is a list of links that are traversed along the path.
See Also