Skip to content

Commit

Permalink
Updated the C implementation to use the new HashEL API that does not …
Browse files Browse the repository at this point in the history
…take directedness.
  • Loading branch information
krivit committed May 26, 2024
1 parent e5ffa24 commit 4367a98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: tergm
Version: 4.2-2546
Date: 2023-12-10
Version: 4.2-2547
Date: 2024-05-26
Title: Fit, Simulate and Diagnose Models for Network Evolution Based on Exponential-Family Random Graph Models
Authors@R: c(
person(c("Pavel", "N."), "Krivitsky", role=c("aut","cre"), email="pavel@statnet.org", comment=c(ORCID="0000-0002-9101-3362")),
Expand All @@ -16,7 +16,7 @@ Authors@R: c(
person("Kirk","Li",role=c("ctb"),email="kirkli@uw.edu"),
person("Chad", "Klumb", role=c("ctb"), email="cklumb@gmail.com"))
Depends:
ergm (>= 4.5.0),
ergm (>= 4.7.0),
network (>= 1.18.0),
networkDynamic (>= 0.11.3)
Imports:
Expand Down
4 changes: 2 additions & 2 deletions src/discordTNT.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ MH_I_FN(Mi_discordBDStratTNT) {
sto->BDTDNE = Calloc(sto->static_sto->strat_nmixtypes, HashEL *);
sto->discordantEdges = Calloc(sto->static_sto->strat_nmixtypes, HashEL *);
for(int i = 0; i < sto->static_sto->strat_nmixtypes; i++) {
sto->BDTDNE[i] = HashELInitialize(0, NULL, NULL, FALSE, DIRECTED);
sto->discordantEdges[i] = HashELInitialize(0, NULL, NULL, FALSE, DIRECTED);
sto->BDTDNE[i] = HashELInitialize(0, NULL, NULL, FALSE);
sto->discordantEdges[i] = HashELInitialize(0, NULL, NULL, FALSE);
}
sto->combined_BDTDNE = NetworkInitialize(NULL, NULL, 0, N_NODES, DIRECTED, BIPARTITE, FALSE, 0, NULL);
sto->combined_nonBDTDNE = NetworkInitialize(NULL, NULL, 0, N_NODES, DIRECTED, BIPARTITE, FALSE, 0, NULL);
Expand Down

0 comments on commit 4367a98

Please sign in to comment.