Difference between revisions of "Scomponents.m"

From Spinach Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
−
Computes the strongly connected components of a graph. Returns
+
{{DISPLAYTITLE:function.m}} __NOTOC__
−
an index for the component number of every vertex in the graph
+
Strongly connected components of a graph, David Gleich's implementation of Tarjan's algorithm (http://dx.doi.org/10.1137/0201010).
−
with the adjacency matrix A. Syntax:
 
  
−
                      sci=scomponents(A)
+
==Syntax==
  
−
where A is square logical matrix and sci is a vector indicating
+
    sci=scomponents(A)
−
which component each node of the graph belongs to.
 
  
−
Algorithm description is at http://dx.doi.org/10.1137/0201010
+
==Arguments==
 +
 
 +
    A    -  a logical square matrix with 1 for the
 +
            connected nodes in the graph
 +
 
 +
==Outputs==
 +
 
 +
    sci  -  a column vector with integers that spe-
 +
            cify the strongly conected component
 +
            that each node of the graph belongs to
 +
 
 +
==See also==
 +
[[sparse2csr.m]], [[zte.m]], [[path_trace.m]], [[reduce.m]]
 +
 
 +
 
 +
''Version 2.3, authors: [[Ilya Kuprov]]''

Revision as of 17:10, 28 December 2018

Strongly connected components of a graph, David Gleich's implementation of Tarjan's algorithm (http://dx.doi.org/10.1137/0201010).

Syntax

    sci=scomponents(A)

Arguments

    A    -  a logical square matrix with 1 for the
            connected nodes in the graph

Outputs

    sci  -  a column vector with integers that spe-
            cify the strongly conected component
            that each node of the graph belongs to

See also

sparse2csr.m, zte.m, path_trace.m, reduce.m


Version 2.3, authors: Ilya Kuprov