I have the same error information as in this topic:
But I’m working under windows, and this error always appear when I iteratively add vertices, edges and edge/vertices weights to a graph. For example, I have 50 graphs, I loop each graphs and add around 1000 vertices and 10000 edges. It always shows this error at the 46th graph, but if I simply do the operation on 46th graph, it works fine.
igraph_attribute_combination_t comb; igraph_attribute_combination(&comb, "weight", IGRAPH_ATTRIBUTE_COMBINE_SUM, "", IGRAPH_ATTRIBUTE_COMBINE_FIRST, IGRAPH_NO_MORE_ATTRIBUTES); igraph_simplify(&sourceGraph, 1, 1, &comb); /* <---- error */
Assertion failed: no < 100, file D:\igraph-0.8.2-msvc\src\igraph_error.c, line 186 Error trace: igraph_simplify () --> igraph_create() --> igraph_empty_attrs() --> igraph_i_cattributes_init() --> IGRAPH_FINALLY_REAL().
I have two questions:
if this is also due to the parallel problem as that topic, where should I add the args? I work on windows and I only have igraph msvc project file.
Cound it be a problem with the
igraph_simplify? I add multiply edges to the graph and I expect that the simplify function can sum the “weight” attributes while keep the vertex attributes.