Gets the Floyd-Warshall matrix for the specified graph avoiding a set of nodes.
Namespace: TspAssembly: Tsp (in Tsp.exe) Versión: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static int[,] GetFloydWarshallM(
Graph g,
int[] avoidNodes
) |
Visual Basic |
---|
Public Shared Function GetFloydWarshallM ( _
g As Graph, _
avoidNodes As Integer() _
) As Integer(,) |
Visual C++ |
---|
public:
static array<int,2>^ GetFloydWarshallM(
Graph^ g,
array<int>^ avoidNodes
) |
Parameters
- g
- Type: Tsp..::..Graph
The graph to get the adyacency matrix.
- avoidNodes
- Type: array<System..::..Int32>[]()[][]
The list of nodes to avoid. Note that the last node in the list will not be avoided.
Return Value
The Floyd-Warshall matrix
See Also