INPUT: B - adjacency matrix of a graph (directed or undirected); OUTPUT: A - incidence matrix; rows = vertices, columns = edges