head.gexf: 'head' method for gexf objects

View source: R/methods.R

head.gexfR Documentation

head method for gexf objects

Description

List the first n_nodes and n_edges of the gexf file.

Usage

## S3 method for class 'gexf'
head(x, n_nodes = 6L, n_edges = n_nodes, ...)

Arguments

x

An object of class gexf.

n_nodes, n_edges

Integers. Number of nodes and edges to print

...

Ignored

Examples

fn <- system.file("gexf-graphs/lesmiserables.gexf", package = "rgexf")
g  <- read.gexf(fn)
head(g, n_nodes = 5)

gvegayon/rgexf documentation built on June 4, 2023, 3:46 p.m.