Created a parent class for the Graphs. Copied the matrix methods to GraphMatrix. LinkedList is working.