Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add general purpose function to depart nodes from the dat object #845

Merged
merged 3 commits into from
May 4, 2023

Conversation

chad-klumb
Copy link
Collaborator

Closes #598.

I called it depart_nodes instead of delete_nodes because in the networkDynamic case you deactivate the nodes rather than actually deleting them from the networkDynamic (which is a different operation). We also have a delete_vertices function for edgelists, and I can imagine delete_vertices and delete_nodes getting confused with each other.

@smjenness smjenness merged commit fad4b43 into ergm_master May 4, 2023
@smjenness smjenness deleted the depart_nodes branch May 4, 2023 18:55
smjenness added a commit that referenced this pull request May 5, 2023
* netest update for compatibility with statnet/ergm@20c6c4c

* removing networkLite tests that can go in lower level packages

* add duration = 1 case to EpiModel networkLite tests

* restore inadvertently removed skip_on_cran()

* add ergm@master remote to ensure compatibility

* try adding tergm@master as well

* add ergm.ego@master remote to make basis available

* specify basis = nw in netest, and remove one instance of nonsimp_update.formula

references #806

* remove remaining uses of nonsimp_update.formula

updating netest, trim_netest, and update_dissolution as needed

also remove now-superfluous imports

references #806

* remove unused ...

* test updates for f56ce9a

* additional non-nested EDA tests

* update trimming behavior

* remove redundant assignment

* update required version numbers to current master values

* #nolint variables whose use isn't recognized

* roxygenize

* add delete_edges

references #837

* update trim_netest to allow keeping some objects

references #836

* roxygenize

* add tests for new (and old) update.R functionality

* add trim_netest tests with keep argument

* adjust duration check in simulate_dat

references EpiModel/EpiModelHIV-p#250

* make duration checks consistent

* add general purpose function to depart nodes from the dat object (#845)

* add function to depart nodes from the dat object

references #598

* add function for arriving new nodes to the dat object (#855)

references #847

* deprecate deleteAttr (#854)

* add function to depart nodes from the dat object

references #598

* deprecate deleteAttr

references #846

---------

Co-authored-by: Samuel Jenness <smjenness@gmail.com>

* update depart_nodes docs for netsim_dat class (#856)

* add function to depart nodes from the dat object

references #598

* update docs for netsim_dat class

---------

Co-authored-by: Samuel Jenness <smjenness@gmail.com>

* update arrive_nodes docs for netsim_dat class (#857)

* add function to depart nodes from the dat object

references #598

* add function for arriving new nodes to the dat object

references #847

* update docs for netsim_dat class

---------

Co-authored-by: Samuel Jenness <smjenness@gmail.com>

* Minor doc updates

---------

Co-authored-by: Samuel Jenness <smjenness@gmail.com>
Co-authored-by: Samuel Jenness <samuel.m.jenness@emory.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants