clear; close all; clc;

% Step 1
% A =
% G = 
% Plotting

% Step 2
% vertices = 

% Step 3
% starting_vertex = 

% Step 4
% labels = 
% labels(starting_vertex) =

% Step 5
% mask_unvisited = 

for i=1:size(A, 1)
    % Step 6
    % unvisited_vertices = 
    
    % Step 7
    % unvisited_vertices_labels = 
    
    % Step 8
    % current_label = 

    % Step 9
    % current_vertex = 
    
    % Routine to update labels of vertices adjacent to current_vertex
    for j=1:size(A, 1)
        % add your code here
        % (see pseudocode)
    end
    
    % Step 10
    % mask_unvisited(current_vertex) = 
end

% Display the result
% add your code here
