refactor: replace .Call() with _impl functions and improve adjacency matrix implementation
#2546
+754
−333