lib: internal: nativeresolver: dependencygraph: refactoring: redefined Element as pointer to vertex, not vertex itself