edu.emory.mathcs.csparsej.tdouble
Class Dcs_dfs
- java.lang.Object
-
- edu.emory.mathcs.csparsej.tdouble.Dcs_dfs
-
public class Dcs_dfs extends java.lang.ObjectDepth-first-search.
-
-
Constructor Summary
Constructors Constructor and Description Dcs_dfs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intcs_dfs(int j, Dcs_common.Dcs G, int top, int[] xi, int xi_offset, int[] pstack, int pstack_offset, int[] pinv, int pinv_offset)Depth-first-search of the graph of a matrix, starting at node j.
-
-
-
Method Detail
-
cs_dfs
public static int cs_dfs(int j, Dcs_common.Dcs G, int top, int[] xi, int xi_offset, int[] pstack, int pstack_offset, int[] pinv, int pinv_offset)Depth-first-search of the graph of a matrix, starting at node j.- Parameters:
j- starting nodeG- graph to search (G.p modified, then restored)top- stack[top..n-1] is used on inputxi- size n, stack containing nodes traversedxi_offset- the index of the first element in array xipstack- size n, work arraypstack_offset- the index of the first element in array pstackpinv- mapping of rows to columns of G, ignored if nullpinv_offset- the index of the first element in array pinv- Returns:
- new value of top, -1 on error
-
-
DMelt 3.0 © DataMelt by jWork.ORG