Rewrote Graph attributes, fixed helper algorithms