case class UndirectedEdge[V, E](attribute: E, white: V, black: V) extends Edge[V, E]
Represents an undirected edge in a graph structure, connecting two vertices (white and black) equally, without a defined direction, and carrying an associated attribute.
Type parameters
E
the type of the attribute associated with the edge.
V
the type of the vertex attributes connected by the edge.
Value parameters
attribute
a value representing additional information or weight associated with the edge.
black
the other vertex connected by the undirected edge.
white
one of the vertices connected by the undirected edge.
Symmetric equality: UndirectedEdge(a, u, v) == UndirectedEdge(a, v, u). The default case class equals treats white and black as ordered, which violates the mathematical definition of an undirected edge.
Symmetric equality: UndirectedEdge(a, u, v) == UndirectedEdge(a, v, u). The default case class equals treats white and black as ordered, which violates the mathematical definition of an undirected edge.