@@ -48,19 +48,31 @@ private StronglyConnectedComponents(int m, int n)
4848 public static StronglyConnectedComponents Generate < T > ( CompressedColumnStorage < T > matrix )
4949 where T : struct , IEquatable < T > , IFormattable
5050 {
51- return Generate ( SymbolicColumnStorage . Create ( matrix , false ) , matrix . ColumnCount ) ;
51+ return Generate ( SymbolicColumnStorage . Create ( matrix , false ) ) ;
5252 }
53-
53+
5454 /// <summary>
55- /// Find strongly connected components of A.
55+ /// Compute strongly connected components of A.
5656 /// </summary>
57- /// <param name="A"></param>
58- /// <param name="n"></param>
59- /// <returns></returns>
60- internal static StronglyConnectedComponents Generate ( SymbolicColumnStorage A , int n )
57+ /// <param name="A">The matrix represented by <see cref="SymbolicColumnStorage"/>.</param>
58+ /// <returns>Strongly connected components</returns>
59+ public static StronglyConnectedComponents Generate ( SymbolicColumnStorage A )
60+ {
61+ return Generate ( A , A . ColumnCount ) ;
62+ }
63+
64+ /// <summary>
65+ /// Compute strongly connected components of A.
66+ /// </summary>
67+ /// <param name="A">The matrix represented by <see cref="SymbolicColumnStorage"/>.</param>
68+ /// <param name="size">The size of the matrix.</param>
69+ /// <returns>Strongly connected components</returns>
70+ public static StronglyConnectedComponents Generate ( SymbolicColumnStorage A , int size )
6171 {
6272 // matrix A temporarily modified, then restored
6373
74+ int n = size ;
75+
6476 int i , k , b , nb = 0 , top ;
6577 int [ ] xi , p , r , Ap , ATp ;
6678
0 commit comments