remane matrix package to Adj matrix