Skip to content

Commit

Permalink
rm unused lines from iso.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Nov 3, 2022
1 parent 41820fc commit ab7f7f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dodgr
Title: Distances on Directed Graphs
Version: 0.2.16.060
Version: 0.2.16.061
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre")),
person("Andreas", "Petutschnig", role = "aut"),
Expand Down
12 changes: 1 addition & 11 deletions R/iso.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,7 @@ iso_pre <- function (graph, from = NULL, heap = "BHeap", contract = TRUE) {
}

if (contract && !methods::is (graph, "dodgr_contracted")) {
graph_full <- graph
graph <- dodgr_contract_graph (graph, verts = to_from_indices$from$id)
hashc <- get_hash (graph, contracted = TRUE)
fname_c <- fs::path (
fs::path_temp (),
paste0 ("dodgr_edge_map_", hashc, ".Rds")
)
if (!fs::file_exists (fname_c)) {
stop ("something went wrong extracting the edge_map ... ")
} # nocov
edge_map <- readRDS (fname_c)
}

graph <- convert_graph (graph, gr_cols)
Expand Down Expand Up @@ -291,7 +281,7 @@ dmat_to_pts <- function (d, from, v, dlim) {

pt_names <- colnames (d)
pts <- list ()
for (i in seq (nrow (d))) {
for (i in seq_len (nrow (d))) {
o <- v [match (from [i], v$id), ]
pts [[i]] <- lapply (dlim, function (j) {
res <- pt_names [which (d [i, ] == j)]
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/ATFutures/dodgr",
"issueTracker": "https://github.com/ATFutures/dodgr/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.16.060",
"version": "0.2.16.061",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit ab7f7f3

Please sign in to comment.