View source: R/orca_interface.R
gdd_for_all_graphs | R Documentation |
Loads graphs from all files matching the given pattern in the given directory, converts them to indexed edge lists compatible with the ORCA fast orbit counting package and calculates the specified set of graphlet-based degree distributions usingthe ORCA package.
gdd_for_all_graphs( source_dir, format = "ncol", pattern = ".txt", feature_type = "orbit", max_graphlet_size = 4, ego_neighbourhood_size = 0, mc.cores = getOption("mc.cores", 2L) )
source_dir |
Path to graph directory |
format |
Format of graph files |
pattern |
Filename pattern to match graph files |
feature_type |
Type of graphlet-based degree distributions. Can be
|
max_graphlet_size |
Maximum size of graphlets to use when generating GDD. Currently only size 4 and 5 are supported. |
ego_neighbourhood_size |
The number of steps from the source node used to select the neighboring nodes to be included in the source node ego-network. If set to 0, ego-networks will not be used. |
mc.cores |
Number of cores to use for parallel processing. Defaults to
the |
A named list where each element contains a set of GDDs for a single
A named list where each element contains a set of GDDs for a single
graph from the source directory. Each set of GDDs is itself a named list,
where each GDD element is a dhist
discrete histogram object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.