ConvertToGraphML: Saving an igraph object as a local graphml file.

View source: R/save-graphs.R

ConvertToGraphMLR Documentation

Saving an igraph object as a local graphml file.

Description

ConvertToGraphML saves a copy of an igraph graph object as a local graphml file in the current file directory with the file name containing the current date, a supplied string in file.name, and the current time.

Usage

ConvertToGraphML(output.graph, file.name)

Arguments

output.graph

An igraph graph object to be saved as a local file.

file.name

A short, descriptive phrase for the file name of the saved igraph graph object. The user need not include the ".graphml" file extension as that is automatically appended.

Examples

current.graph <- igraph::sample_k_regular(no.of.nodes = 10, k = 2, directed = FALSE, multiple = FALSE)
file.name <- "Practice_Graph"
ConvertToGraphML(current.graph, file.name)

zunderlab/FLOWMAP documentation built on Sept. 7, 2024, 6:31 p.m.