Finding the incidence matrix of a graph from its edges

If there are m vertices and the n edges e1={u,v}, e2={x,y}, etc, these are entered as the edge string u v x y etc. with entries separated by spaces. The incidence matrix is printed

number of vertices:
number of edges :
edge string:

Last modified 14th September 2013
Return to main page