Skip to content
Graph IO functionality for various formats.
Julia Mathematica
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Merge branch 'master' into split_into_submodules Oct 6, 2018
test Merge branch 'master' into split_into_submodules Oct 6, 2018
.codecov.yml LightGraphsPersistence.jl generated files. Apr 10, 2017
.gitignore LightGraphsPersistence.jl generated files. Apr 10, 2017
.travis.yml replaced appinfo() by versioninfo() in .travis.yml Sep 14, 2018
LICENSE.md LGPersistence -> GraphIO Apr 19, 2017
README.md
REQUIRE split GraphIO into submodules Sep 22, 2018

README.md

GraphIO

Build Status codecov.io

GraphIO provides support to LightGraphs.jl for reading/writing graphs in various formats.

The current version of GraphIO works with Julia version >= 0.7.

Currently, the following functionality is provided:

Format Read Write Multiple Graphs Format Name
[EdgeList] EdgeListFormat
[GML] GMLFormat
[Graph6] Graph6Format
[GraphML] GraphMLFormat
[Pajek NET] NETFormat
[GEXF] GEXFFormat
[DOT] DOTFormat
[CDF] CDFFormat

[EdgeList]: a simple list of sources and dests separated by whitespace and/or comma, one pair per line. [GML]: https://en.wikipedia.org/wiki/Graph_Modelling_Language [Graph6]: https://users.cecs.anu.edu.au/~bdm/data/formats.html [GraphML]: https://en.wikipedia.org/wiki/GraphML [Pajek NET]: https://gephi.org/users/supported-graph-formats/pajek-net-format/ [GEXF]: https://gephi.org/gexf/format/ [DOT]: https://en.wikipedia.org/wiki/DOT_(graph_description_language)

Graphs are read using either the loadgraph function or, for formats that support multiple graphs in a single file, the loadgraphs functions. loadgraph returns a LightGraph object, while loadgraphs returns a dictionary of LightGraph objects.

For example, an edgelist file could be loaded as:

graph = loadgraph("path_to_graph/my_edgelist.txt", "graph_key", EdgeListFormat())
You can’t perform that action at this time.