Skip to content

Commit

Permalink
Update R/graph-functions-misc.R
Browse files Browse the repository at this point in the history
Co-authored-by: mark padgham <mark.padgham@email.com>
  • Loading branch information
leoniedu and mpadge authored Feb 12, 2025
1 parent 5787bd5 commit ec4dade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/graph-functions-misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ find_edge_id_col <- function (graph) {
# If no exact match, try broader patterns
if (length (edge_id_col) != 1) {
# Look for columns ending in edge_id or edge
edge_id_col <- grep ("edge_id$|edge$", names (graph), ignore.case = TRUE)
edge_id_col <- grep ("^edge\\_$|edge$", names (graph), ignore.case = TRUE)

if (length (edge_id_col) > 1) {
stop ("Unable to determine unique column for edge IDs")

Check warning on line 304 in R/graph-functions-misc.R

View check run for this annotation

Codecov / codecov/patch

R/graph-functions-misc.R#L304

Added line #L304 was not covered by tests
Expand Down

0 comments on commit ec4dade

Please sign in to comment.