For an unexplained reason while testing with webtest in loop, default value of edgeAttributes={} in graph.link was overinden by a previous the provated of the previously created edge
trigger validation problems.
Solved the issue by removing the default value