Skip to contents

Write a tidygraph network to GEXF XML format for use with Gephi.

Usage

sm_export_gephi(network, path)

Arguments

network

A tbl_graph object.

path

Output file path (should end in .gexf).

Value

path invisibly.

Examples

# \donttest{
corpus <- sm_example_corpus()
net <- sm_network_cocitation(corpus)
sm_export_gephi(net, tempfile(fileext = ".gexf"))
#> Warning: Unknown or uninitialised column: `from`.
#> Warning: Unknown or uninitialised column: `to`.
#>  Network exported to /tmp/RtmpIQMgiF/file237048859914.gexf
# }