Both for states and for edges
Both for states and for edges