graph adjacency matrix and list representation added