Skip to content

Commit d8fcada

Browse files
committed
When printing combined networks, don't print the reserved vertex attributes.
1 parent 97a1fbb commit d8fcada

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

R/print.combined_networks.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@
3030
#' @param ... additional arguments to methods.
3131
#' @export
3232
print.combined_networks<-function(x, ...) {
33+
x.orig <- x
3334
.print_combined_networks_info(x)
3435
delete.network.attribute(x, c(".snl", ".snattr", ".combiner", ".bm"))
36+
delete.vertex.attribute(x, c(".snid", ".bipartite", ".undirected", ".ubid"))
3537
NextMethod()
38+
x.orig
3639
}
3740

3841
#' @describeIn combine_networks A wrapper around
@@ -49,8 +52,11 @@ summary.combined_networks<-function (object, ...) {
4952
#' information and omit some internal variables.
5053
#' @export
5154
print.summary.combined_networks<-function(x, ...) {
55+
x.orig <- x
5256
.print_combined_networks_info(x)
5357
delete.network.attribute(x, c(".snl", ".snattr", ".combiner", ".bm"))
58+
delete.vertex.attribute(x, c(".snid", ".bipartite", ".undirected", ".ubid"))
5459
NextMethod()
60+
x.orig
5561
}
5662

0 commit comments

Comments
 (0)