Implemented methods for graphs, and removed everything from UDG