Skip to content

Commit

Permalink
Merge pull request #997 from Relux-the-Relux/feature/improbe-matrix-r…
Browse files Browse the repository at this point in the history
…eader

Allow single % and integer weights with MatrixMarketReader
  • Loading branch information
angriman committed Nov 17, 2022
2 parents f73f37b + 9b2a8ff commit 1492ae7
Show file tree
Hide file tree
Showing 8 changed files with 510 additions and 4 deletions.
39 changes: 39 additions & 0 deletions input/GD01_b.mtx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
%%MatrixMarket matrix coordinate pattern general
18 18 37
1 1
7 1
1 2
8 2
2 3
6 3
9 3
3 4
16 4
4 5
9 5
5 6
6 7
8 7
2 8
7 8
3 9
5 9
4 10
17 10
10 11
11 12
15 12
18 12
12 13
13 13
13 14
15 14
18 14
14 15
11 16
14 16
17 16
10 17
16 17
12 18
14 18
100 changes: 100 additions & 0 deletions input/Hamrle1.mtx
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
%%MatrixMarket matrix coordinate real general
32 32 98
1 1 .8499999999999999
2 1 .2039265503510711
21 1 1
23 1 1
25 1 1
1 2 .15000000000000013
2 2 -.2039265503510711
22 2 1
24 2 1
26 2 1
1 3 -.21772222037194985
2 3 -.04492168652740657
3 3 1
17 3 1
1 4 -.21772222037195
2 4 .2545562236553039
3 4 1
18 4 1
4 5 .2213493690543944
21 5 -1
4 6 -.2213493690543944
22 6 -1
4 7 -.0004256718635661431
5 7 1
17 7 1
4 8 .0004256718635661431
5 8 1
18 8 1
6 9 .2039265503510711
23 9 -1
6 10 -.2039265503510711
24 10 -1
6 11 -.04492168652740657
7 11 1
17 11 1
6 12 .2545562236553039
7 12 1
18 12 1
8 13 .20392655035107113
27 13 -1
8 14 -.20392655035107113
28 14 -1
8 15 -.2545562236553039
9 15 1
19 15 1
8 16 .04492168652740657
9 16 1
20 16 1
10 17 .2213493690543944
29 17 -1
10 18 -.2213493690543944
30 18 -1
10 19 -.0004256718635661431
11 19 1
19 19 1
10 20 .0004256718635661431
11 20 1
20 20 1
12 21 .20392655035107113
31 21 -1
12 22 -.20392655035107113
32 22 -1
12 23 -.2545562236553039
19 23 1
12 24 .04492168652740657
20 24 1
13 25 -1
27 25 1
29 25 1
31 25 1
14 26 -1
28 26 1
30 26 1
32 26 1
15 27 -1
19 27 -1
16 28 -1
20 28 -1
13 29 1.0838782686107287
14 29 -.08387826861072856
15 29 -156.78998795556143
16 29 156.78998795556143
25 29 -1
13 30 -.08387826861072856
14 30 1.0838782686107287
15 30 156.78998795556143
16 30 -156.78998795556143
26 30 -1
13 31 -.0011292951794637206
14 31 3.0394080562621574e-5
15 31 1.0838782686107287
16 31 -.08387826861072858
17 31 1
13 32 3.0394080562621574e-5
14 32 -.0011292951794637206
15 32 -.08387826861072858
16 32 1.0838782686107287
18 32 1
32 changes: 32 additions & 0 deletions input/LFAT5.mtx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
%%MatrixMarket matrix coordinate real symmetric
14 14 30
1 1 1.57088
4 1 -94.2528
5 1 .78544
2 2 1.25664e7
6 2 -6.2832e6
3 3 .6088062015503876
7 3 -.3044031007751938
4 4 15080.447999999997
8 4 -7540.223999999998
9 4 94.2528
5 5 3.14176
8 5 -94.2528
9 5 .78544
6 6 1.25664e7
10 6 -6.2832e6
7 7 .6088062015503876
11 7 -.3044031007751938
8 8 15080.447999999997
12 8 -7540.223999999998
13 8 94.2528
9 9 3.14176
12 9 -94.2528
13 9 .78544
10 10 1.25664e7
11 11 .6088062015503876
12 12 15080.447999999997
14 12 94.2528
13 13 3.14176
14 13 .78544
14 14 1.57088
5 changes: 5 additions & 0 deletions input/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This folder contains many smaller graphs. They are used in the testing suite and
| caidaRouterLevel.graph | Format.METIS | METISGraphReader | 7490360 | 192244 | 609066 | FALSE | FALSE | n/a |
| celegans_metabolic.graph | Format.METIS | METISGraphReader | 16015 | 453 | 2025 | FALSE | FALSE | n/a |
| celegans_metabolic.thrill | Format.THRILL | ThrillGraphReader | 8554 | 453 | 2025 | FALSE | FALSE | n/a |
| chesapeake.mtx | n/a | MatrixMarketReader | 1053 | 39 | 170 | FALSE | FALSE | n/a |
| comments.edgelist | Format.EdgeListTabOne | EdgeListReader | 127 | 10 | 10 | FALSE | FALSE | n/a |
| community_overlapping.cover | n/a | CoverReader | 61 | n/a | n/a | n/a | n/a | n/a |
| community_overlapping.dat | n/a | EdgeListCoverReader | 83 | n/a | n/a | n/a | n/a | n/a |
Expand All @@ -27,8 +28,10 @@ This folder contains many smaller graphs. They are used in the testing suite and
| example2.dgs | n/a | DGSReader | 161 | n/a | n/a | n/a | n/a | n/a |
| foodweb-baydry.konect | Format.KONECT | KONECTGraphReader | 42847 | 128 | 2137 | TRUE | TRUE | n/a |
| foodweb-baydry.networkit | Format.NETWORKITBINARY | NetworkitBinaryReader | 42491 | 128 | 2137 | TRUE | TRUE | n/a |
| GD01_b.mtx | n/a | MatrixMarketReader | 244 | 18 | 37 | TRUE | FALSE | n/a |
| grid-5x5-dist-arch.graph | Format.METIS | METISGraphReader | 218 | 25 | 40 | FALSE | FALSE | n/a |
| hamming6-4.edgelist | Format.EdgeListSpaceOne | EdgeListReader | 4088 | 64 | 704 | FALSE | FALSE | n/a |
| Hamrle1.mtx | n/a | MatrixMarketReader | 1571 | 32 | 98 | TRUE | TRUE | n/a |
| hep-th.graph | Format.METIS | METISGraphReader | 157814 | 8361 | 15751 | FALSE | FALSE | n/a |
| jazz.graph | Format.METIS | METISGraphReader | 19445 | 198 | 2742 | FALSE | FALSE | n/a |
| jazz2_directed.gml | Format.GML | GMLGraphReader | 289 | 5 | 4 | TRUE | FALSE | n/a |
Expand All @@ -37,6 +40,7 @@ This folder contains many smaller graphs. They are used in the testing suite and
| johnson8-4-4.edgelist | Format.EdgeListSpaceOne | EdgeListReader | 10716 | 70 | 1855 | FALSE | FALSE | n/a |
| karate.graph | Format.METIS | METISGraphReader | 450 | 34 | 78 | FALSE | FALSE | n/a |
| lesmis.graph | Format.METIS | METISGraphReader | 2630 | 77 | 254 | FALSE | TRUE | n/a |
| LFAT5.mtx | n/a | MatrixMarketReader | 553 | 14 | 30 | FALSE | TRUE | n/a |
| looptest1.gml | Format.GML | GMLGraphReader | 676 | 9 | 12 | FALSE | FALSE | n/a |
| looptest2.gml | Format.GML | GMLGraphReader | 754 | 9 | 14 | FALSE | FALSE | n/a |
| MIT8.edgelist | Format.EdgeListTabZero | EdgeListReader | 2425755 | 6440 | 251252 | FALSE | FALSE | n/a |
Expand All @@ -46,6 +50,7 @@ This folder contains many smaller graphs. They are used in the testing suite and
| polblogs.graph | Format.METIS | METISGraphReader | 143808 | 1490 | 16715 | FALSE | FALSE | n/a |
| power.graph | Format.METIS | METISGraphReader | 67968 | 4941 | 6594 | FALSE | FALSE | n/a |
| power.gt | Format.GraphToolBinary | GraphToolBinaryReader | 172599 | 4941 | 6594 | FALSE | FALSE | n/a |
| Ragusa16.mtx | n/a | MatrixMarketReader | 664 | 24 | 81 | TRUE | TRUE | n/a |
| spaceseparated_weighted.edgelist | Format.EdgeListSpaceOne | EdgeListReader | 17 | 3 | 3 | FALSE | TRUE | n/a |
| spaceseparated.edgelist | Format.EdgeListSpaceOne | EdgeListReader | 86 | 10 | 10 | FALSE | FALSE | n/a |
| staticTest.gexf | GEXFReader | n/a | 141043 | n/a | n/a | n/a | n/a | n/a |
Expand Down
83 changes: 83 additions & 0 deletions input/Ragusa16.mtx
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
%%MatrixMarket matrix coordinate integer general
24 24 81
14 2 1
5 3 2
11 3 1
22 3 1
11 4 1
22 4 1
1 5 1
3 5 1
5 5 4
8 5 1
9 5 1
11 5 4
14 5 1
16 5 2
19 5 1
20 5 1
24 5 3
7 6 1
20 6 1
7 7 1
9 7 1
11 7 1
14 7 1
8 8 1
11 8 1
13 8 1
20 8 1
5 9 1
9 9 1
16 9 1
20 9 1
24 9 1
8 10 1
11 10 1
24 10 2
5 11 4
7 11 1
8 11 1
10 11 2
11 11 1
12 11 1
13 11 1
14 11 1
18 11 1
22 11 1
24 11 1
5 12 1
8 12 1
10 12 1
12 12 1
13 12 1
17 12 1
22 12 2
23 12 1
5 13 2
22 13 1
5 14 3
7 14 1
22 14 1
23 14 1
5 15 1
3 16 1
16 16 1
11 19 1
19 19 1
8 20 1
11 20 1
20 20 1
22 20 1
9 21 1
1 22 2
9 22 1
10 22 1
12 22 5
13 22 1
14 22 4
22 22 6
24 22 1
3 24 1
5 24 1
8 24 1

0 comments on commit 1492ae7

Please sign in to comment.