GRLABEL Associate a label to each connected component of the graph. LABELS = grLabel(NODES, EDGES) Returns an array with as many rows as the array NODES, containing index number of each connected component of the graph. If the graph is totally connected, returns an array of 1. Example nodes = rand(6, 2); edges = [1 2;1 3;4 6]; labels = grLabel(nodes, edges); labels = 1 1 1 2 3 2 See also getNeighborNodes ------ Author: David Legland e-mail: david.legland@grignon.inra.fr Created: 2007-08-14, using Matlab 7.4.0.287 (R2007a) Copyright 2007 INRA - BIA PV Nantes - MIAJ Jouy-en-Josas.
Package: matgeom