resolveNode(v): Node | Group
For the given vertex, resolves the node/group it pertains to. If the vertex is already a node/group, it is returned. Otherwise, if
it is a port, the parent of the port is returned.
Parameters
Vertex
Returns
Node | Group