Filter löschen
Filter löschen

How I get a graph coloring from a routing matrix

1 Ansicht (letzte 30 Tage)
Duano Silva
Duano Silva am 13 Feb. 2016
Bearbeitet: Walter Roberson am 13 Feb. 2016
My task is to develop code to graph coloring from a routing matrix (in a csv Excel file) to a adjacent matrix. First of all I have to transform the matrix such
M = {'0','1 4 2','1 4 5 3','1 4','1 4 5';
'1 4 2','0','2 3','2 4','2 4 5';
'1 4 5 3','2 3','3 5 4','3 5','0';
'1 4','2 4','3 5 4','0','4 5';
'1 4 5','2 4 5','3 5','4 5','0'}
in an array where the elements of this array are the superior diagonal of the matrix. After this I have to compare each elements and its inverse to other. The result must be one if the sequence or all element belong to another. For example comparing the element '1 5 6' in the array to '1 5' the result have to be one. Or comparing '1 5 6' to '6 5' the result is also one.

Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by