add vertex and edges for cast and director