Skip to content

Commit e3ffd23

Browse files
committed
Support MetaGraphs.jl
1 parent 3211943 commit e3ffd23

File tree

5 files changed

+580
-12
lines changed

5 files changed

+580
-12
lines changed

Project.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d"
1111
[weakdeps]
1212
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
1313
EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615"
14+
MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5"
1415
ParserCombinator = "fae87a5f-d1ad-5cf0-8f61-c941e1580b46"
1516

1617
[extensions]
@@ -19,12 +20,14 @@ GraphIOGEXFExt = "EzXML"
1920
GraphIOGMLExt = "ParserCombinator"
2021
GraphIOGraphMLExt = "EzXML"
2122
GraphIOLGCompressedExt = "CodecZlib"
23+
GraphIOMetaGraphsGraphMLExt = ["EzXML", "MetaGraphs"]
2224

2325
[compat]
2426
CodecZlib = "0.7"
2527
DelimitedFiles = "1"
2628
EzXML = "1"
2729
Graphs = "1.4"
30+
MetaGraphs = "0.7.2"
2831
ParserCombinator = "2.1"
2932
Requires = "1"
3033
SimpleTraits = "0.9"
@@ -36,8 +39,9 @@ CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
3639
EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615"
3740
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
3841
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
42+
MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5"
3943
ParserCombinator = "fae87a5f-d1ad-5cf0-8f61-c941e1580b46"
4044
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4145

4246
[targets]
43-
test = ["Aqua", "CodecZlib", "Graphs", "JuliaFormatter", "EzXML", "ParserCombinator", "Test"]
47+
test = ["Aqua", "CodecZlib", "Graphs", "JuliaFormatter", "EzXML", "ParserCombinator", "Test", "MetaGraphs"]

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ GraphIO provides support to [Graphs.jl](https://github.com/JuliaGraphs/Graphs.jl
99

1010
Currently, the following functionality is provided:
1111

12-
| Format | Read | Write | Multiple Graphs | Format Name | Comment |
13-
| ----------- | ---- | ----- | --------------- | -------------- | ------------------------------------------------------------------------------------------- |
14-
| EdgeList ||| | EdgeListFormat | a simple list of sources and dests separated by whitespace and/or comma, one pair per line. |
15-
| [GML] |||| GMLFormat | |
16-
| [Graph6] |||| Graph6Format | |
17-
| [GraphML] |||| GraphMLFormat | |
18-
| [Pajek NET] ||| | NETFormat | |
19-
| [GEXF] | || | GEXFFormat | |
20-
| [DOT] || || DOTFormat | |
21-
| [CDF] || | | CDFFormat | |
22-
12+
| Format | Read | Write | Multiple Graphs | Format Name | Simple(Di)Graph | MetaGraphs.jl |
13+
| ----------- | ---- | ----- | --------------- | -------------- | --------------- | ------------- |
14+
| EdgeList [^1] ||| | EdgeListFormat || |
15+
| [GML] |||| GMLFormat || |
16+
| [Graph6] |||| Graph6Format || |
17+
| [GraphML] |||| GraphMLFormat |||
18+
| [Pajek NET] ||| | NETFormat || |
19+
| [GEXF] | || | GEXFFormat || |
20+
| [DOT] || || DOTFormat || |
21+
| [CDF] || | | CDFFormat || |
22+
23+
24+
[^1]: a simple list of sources and dests separated by whitespace and/or comma, one pair per line.
2325

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

0 commit comments

Comments
 (0)