alan-turing-institute / network-comparison

An R package implementing the NetEMD and NetDis network comparison measures
MIT License
14 stars 3 forks source link

Add equality comparison method to dhist #76

Closed martintoreilly closed 6 years ago

martintoreilly commented 7 years ago

R does not know how to compare two dhists. Implement == for this class.

Implementation

Noted here as it took quite a bit of Google-foo to figure out how to name methods that are operators (the backtick magic)

`==.className` <- function(x, y) {
    all(mapply(`==`, x, y)
}
martintoreilly commented 7 years ago

Closed by PR #80