Here are the signatures :
abstract sig Color{}
lone sig Red, Blue, Yellow, Green extends Color{}
abstract sig Vertex{
couleur: Color
}
abstract sig Digraph{
vertices: set Vertex,
edges: set(Vertex -> Vertex)
}
fact{
vertices.couleur != edges.couleur
}
I get an error saying that I can't use "!=" between 2 expressions that aren't the same arity. I get why, but I don't know how I can solve this.
What I want to do is, forbidding the two vertices color to be the same in an edge. Any ideas ?