class_docstr: LU factorization.
  
  To solve Ax = b:
      solver = _LUSolver(A)
      x = solver.solve(b)
  
  optional argument `tol` on solve method is ignored but included
  to match _PCGsolver API.
class_docstr_tok: ["LU","factorization",".","To","solve","Ax","=","b",":","solver","=","_LUSolver","(","A",")","x","=","solver.solve","(","b",")","optional","argument","`","tol","`","on","solve","method","is","ignored","but","included","to","match","_PCGsolver","API","."]
code: def __init__(self, A):
      import scipy as sp
  
      self._LU = sp.sparse.linalg.splu(
          A,
          permc_spec="MMD_AT_PLUS_A",
          diag_pivot_thresh=0.0,
          options={"Equil": True, "SymmetricMode": True},
      )
  
file_path: networkx/networkx/linalg/algebraicconnectivity.py
imports: from functools import partial
  import networkx
  from networkx.utils import not_implemented_for, np_random_state, reverse_cuthill_mckee_ordering
label_desc: Use image node_id 1 to create a new _LUSolver object  with example: obj = _LUSolver(A)