View source: R/measures_net_emd.R
netemd_many_to_many | R Documentation |
NetEMDs between all graph pairs using provided Graphlet-based Degree Distributions
netemd_many_to_many( graphs = NULL, dhists = NULL, method = "optimise", smoothing_window_width = 0, return_details = FALSE, mc.cores = getOption("mc.cores", 2L), feature_type = "orbit", max_graphlet_size = 5, ego_neighbourhood_size = 0 )
graphs |
A list of network/graph objects from the |
dhists |
A list whose elements contain either: A list of |
method |
The method to use to find the minimum EMD across all potential
offsets for each pair of histograms. Default is "optimise" to use
R's built-in |
smoothing_window_width |
Width of "top-hat" smoothing window to apply to
"smear" point masses across a finite width in the real domain. Default is 0,
which results in no smoothing. Care should be taken to select a
|
return_details |
Logical indicating whether to return the individual minimal EMDs and associated offsets for all pairs of histograms |
mc.cores |
Number of cores to use for parallel processing. Defaults to
the |
feature_type |
Type of graphlet-based feature to count: "graphlet" counts the number of graphlets each node participates in; "orbit" (default) calculates the number of graphlet orbits each node participates in. |
max_graphlet_size |
Determines the maximum size of graphlets to count.
Only graphlets containing up to |
ego_neighbourhood_size |
The number of steps from the source node to include nodes for each ego-network. NetEmd was proposed for individual nodes alone, hence the default value is 0. |
NetEMD measures between all pairs of graphs for which features
were provided. Format of returned data depends on the return_details
parameter. If set to FALSE, a list is returned with the following named
elements:net_emd
: a vector of NetEMDs for each pair of graphs,
comp_spec
: a comparison specification table containing the graph names
and indices within the input GDD list for each pair of graphs compared.
If return_details
is set to FALSE, the list also contains the following
matrices for each graph pair: min_emds
: the minimal EMD for each GDD
used to compute the NetEMD, min_offsets
: the associated offsets giving
the minimal EMD for each GDD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.