Graph is functional. Might need tweak how elements are accessed.