* Modification of AdjacencyMatrix for introduction of the Directed and Undirected internal classes.