public VertexType getVertexType(BaseWork w) {
    return workVertexTypeMap.get(w);
  }
connect adds an edge between a and b. Both nodes have
to be added prior to calling connect.
ql/src/java/org/apache/hadoop/hive/ql/plan/TezWork.java