fg.subgraphR Documentation

Generate an induced subgraph

Description

Generate an induced subgraph that contains the specified vertices from the input given graph.

Usage

fg.fetch.subgraph(graph, vertices, name = paste(graph$name, "-sub", sep = ""),
  compress = TRUE)

Arguments

graph

The FlashGraph object

vertices

A numeric vector that contains the ids of vertices in the induced subgraph.

name

The name of the FlashGraph object.

compress

This indicates whether to remove empty vertices in the generated subgraph.

Details

‘fg.fetch.subgraph’ generates the induced subgraph and returns a FlashGraph object.

Value

‘fg.fetch.subgraph’ returns a FlashGraph object

Author(s)

Da Zheng <dzheng5@jhu.edu>