Graph simplification

Removed the vertice class from the edge class, requiring less space and
reducing templates confusion.