Fucking matrix for graph

One day for generating this fucking matrix.. Now all is right, when you
add vertex, matrix create row and column for it.