added method getIncidenceMatrix and test
This method returns the incidence matrix of a directed graph.