connection.matrix function

Connection counts as square matrix