Added trait for vertices and edges