Learn R Programming

robin (version 1.0.0)

robinRobust: robinRobust

Description

This functions implements a procedure to examine the stability of the partition recovered by some algorithm against random perturbations of the original graph structure.

Usage

robinRobust(
  graph,
  graphRandom,
  method = c("walktrap", "edgeBetweenness", "fastGreedy", "louvain", "spinglass",
    "leadingEigen", "labelProp", "infomap", "optimal", "other"),
  FUN = NULL,
  measure = c("vi", "nmi", "split.join", "adjusted.rand"),
  type = c("independent", "dependent"),
  directed = FALSE,
  weights = NULL,
  steps = 4,
  spins = 25,
  e.weights = NULL,
  v.weights = NULL,
  nb.trials = 10
)

Arguments

graph

The output of prepGraph.

graphRandom

The output of random function.

method

The clustering method, one of "walktrap", "edgeBetweenness", "fastGreedy", "louvain", "spinglass", "leadingEigen", "labelProp", "infomap", "optimal".

measure

The stability measure, one of "vi", "nmi", "split.join", "adjusted.rand".

type

The type of robin costruction, dependent or independent data

directed

This argument is settable only for "edgeBetweenness" method.

weights

this argument is not settable for "infomap" method.

steps

this argument is settable only for "leadingEigen"and"walktrap" method.

spins

This argument is settable only for "infomap" method.

e.weights

This argument is settable only for "infomap" method.

v.weights

This argument is settable only for "infomap" method.

nb.trials

This argument is settable only for "infomap" method.

Value

A list object.

Examples

Run this code
# NOT RUN {
my_file <- system.file("example/football.gml", package="robin")
graph <- prepGraph(file=my_file, file.format="gml")
graphRandom <- random(graph=graph)
robinRobust(graph=graph, graphRandom=graphRandom, method="louvain",
measure="vi",type="independent")
# }

Run the code above in your browser using DataLab