Skip to contents

The function getGraph returns the graph::graphNEL object stored in a gGraph or gData object.

Usage

getGraph(x, ...)

# S4 method for class 'gGraph'
getGraph(x, ...)

# S4 method for class 'gData'
getGraph(x, ...)

Arguments

x

a valid gGraph or gData object.

...

additional arguments passed to other methods (currently unused).

Value

A graph::graphNEL object.

Functions

  • getGraph(gGraph): Method for gGraph objects

  • getGraph(gData): Method for gData objects

Examples

getGraph(worldgraph.10k)
#> A graphNEL graph with undirected edges
#> Number of Nodes = 10242 
#> Number of Edges = 6954