I was trying with the solve OD matrix, I really got tired and decided to make it using the old way
Two cursors that goes first for each line, then get the two points that intersects it and change that position in a zero matrix
you can find it at github
pythonScripts/adjacencyMatrix.py at master · diegopajarito/pythonScripts · GitHub
Diego P