maybe we can read eges ?

This commit is contained in:
tTh
2023-03-28 14:50:40 +02:00
parent 329223d195
commit d1a5a5b5c9
7 changed files with 100 additions and 41 deletions

View File

@@ -1,5 +1,6 @@
/*
* edges.c
* a part of libbubulle from tTh
*/
#include <stdio.h>
@@ -150,10 +151,15 @@ int print_the_edges(EdgeList *list, int k)
{
int foo;
fprintf(stderr, ">>> %s ( %p %d )\n", __func__, list, k);
if (k) {
fprintf(stderr, "In %s, k must be 0, was %d\n", __func__, k);
return k;
}
fprintf(stderr, " list.fidx = %d\n", list->fidx);
for (foo=0; foo<list->fidx; foo++) {
printf("%d\t\t%5d %5d\n", foo, list->edges[foo].A, list->edges[foo].B);
}