Skip to content

Commit

Permalink
Replace 'IssueEvent' vertex attribute by 'Issue' in multi-networks
Browse files Browse the repository at this point in the history
To be consistent with bipartite networks it is necessary to rename the
vertex attribute 'IssueEvent' to 'Issue' in multi-networks.

This works towards #239.

Signed-off-by: Maximilian Löffler <[email protected]>
  • Loading branch information
maxloeffler committed Sep 5, 2023
1 parent 62ff9d0 commit 26d7b7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions util-networks.R
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,11 @@ NetworkBuilder = R6::R6Class("NetworkBuilder",
artifacts.to.add.kind = artifacts.all[
artifacts.all[["data.vertices"]] %in% artifacts.to.add, "artifact.type"
]

## Adjust vertex attribute to 'Issue' in multi networks
## to be consistent with bipartite networks
artifacts.to.add.kind[artifacts.to.add.kind == "IssueEvent"] = "Issue"

artifacts.net = artifacts.net + igraph::vertices(artifacts.to.add, type = TYPE.ARTIFACT,
kind = artifacts.to.add.kind)

Expand Down

0 comments on commit 26d7b7e

Please sign in to comment.