Skip to content

Commit e9a3e6d

Browse files
authored
Merge pull request #3 from krlmlr/f-lesmis
2 parents 9006968 + 206a988 commit e9a3e6d

File tree

7 files changed

+3386
-0
lines changed

7 files changed

+3386
-0
lines changed

Diff for: NAMESPACE

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
export(lesmis_gml)
4+
export(lesmis_graphml)
5+
export(lesmis_pajek)

Diff for: R/files.R

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#' Example files
2+
#'
3+
#' Functions that return paths to example files of the "Les Miserables" example network,
4+
#' in the GML, GraphML or Pajek format.
5+
#'
6+
#' @return A string indicating an absolute path to a file.
7+
#' @name lesmis
8+
#' @export
9+
lesmis_gml <- function() {
10+
system.file("files/lesmis.gml", package = "igraphdata", mustWork = TRUE)
11+
}
12+
13+
#' @export
14+
#' @rdname lesmis
15+
lesmis_graphml <- function() {
16+
system.file("files/lesmis.graphml", package = "igraphdata", mustWork = TRUE)
17+
}
18+
19+
#' @export
20+
#' @rdname lesmis
21+
lesmis_pajek <- function() {
22+
system.file("files/lesmis.net", package = "igraphdata", mustWork = TRUE)
23+
}

0 commit comments

Comments
 (0)