I'm divided as to where to place a method which checks whether two edges are parallel in a graph.
In the UML class diagram seen below, I have placed my suggestions in notes.
The figure depicts that a Graph consits of Edges and Vertices. Two edges are parallel if they associate with the same vertices (both of the edges and all of the vertices mustu belong to the same graph).
My suggestions are (horizontally ordered):
- A graph can answer whether two edges (which it must contain) are parallel.
- An Edge classifier can answer whether two edges are parallel.
- An Edge can inspect another edge to answer whether it is parallel to itself.
My question is: What is the argument for and against each of my three proposals?