Skip to content

Commit

Permalink
digraphs.c: fix DigraphsNrEdges for range reps
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfwilson committed Jun 17, 2019
1 parent 737f1d8 commit 458a102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/digraphs.c
Expand Up @@ -75,7 +75,7 @@ Int DigraphNrEdges(Obj digraph) {
adj = OutNeighbours(digraph);
nr = 0;
for (i = 1; i <= n; i++) {
nr += LEN_PLIST(ELM_PLIST(adj, i));
nr += LEN_LIST(ELM_PLIST(adj, i));
}
AssPRec(digraph, RNamName("DigraphNrEdges"), INTOBJ_INT(nr));
return nr;
Expand Down

0 comments on commit 458a102

Please sign in to comment.