edsger 0.1.1__cp311-cp311-macosx_11_0_arm64.whl → 0.1.2__cp311-cp311-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
edsger/star.pyx CHANGED
@@ -204,7 +204,7 @@ cdef void _coo_to_csr_uint32(
204
204
  cnp.uint32_t [::1] Ax,
205
205
  cnp.uint32_t [::1] Bp,
206
206
  cnp.uint32_t [::1] Bj,
207
- cnp.uint32_t [::1] Bx) nogil noexcept:
207
+ cnp.uint32_t [::1] Bx) noexcept nogil:
208
208
 
209
209
  cdef:
210
210
  size_t i, row, dest
@@ -280,7 +280,7 @@ cpdef void _coo_to_csr_float64(
280
280
  cnp.float64_t [::1] Ax,
281
281
  cnp.uint32_t [::1] Bp,
282
282
  cnp.uint32_t [::1] Bj,
283
- cnp.float64_t [::1] Bx) nogil noexcept:
283
+ cnp.float64_t [::1] Bx) noexcept nogil:
284
284
 
285
285
  cdef:
286
286
  size_t i, row, dest
@@ -318,7 +318,7 @@ cpdef void _coo_to_csc_float64(
318
318
  cnp.float64_t [::1] Ax,
319
319
  cnp.uint32_t [::1] Bp,
320
320
  cnp.uint32_t [::1] Bi,
321
- cnp.float64_t [::1] Bx) nogil noexcept:
321
+ cnp.float64_t [::1] Bx) noexcept nogil:
322
322
 
323
323
  cdef:
324
324
  size_t i, col, dest
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edsger
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Graph algorithms in Cython.
5
5
  Author-email: François Pacull <francois.pacull@architecture-performance.fr>
6
6
  Maintainer-email: François Pacull <francois.pacull@architecture-performance.fr>
@@ -70,20 +70,19 @@ from edsger.path import Dijkstra
70
70
  edges = pd.DataFrame({
71
71
  'tail': [0, 0, 1, 2, 2, 3],
72
72
  'head': [1, 2, 2, 3, 4, 4],
73
- 'weight': [1, 4, 2, 1, 3, 1]
73
+ 'weight': [1, 4, 2, 1.5, 3, 1]
74
74
  })
75
75
  edges
76
76
  ```
77
77
 
78
- | | tail | head | weight |
79
- |---:|-------:|-------:|---------:|
80
- | 0 | 0 | 1 | 1 |
81
- | 1 | 0 | 2 | 4 |
82
- | 2 | 1 | 2 | 2 |
83
- | 3 | 2 | 3 | 1 |
84
- | 4 | 2 | 4 | 3 |
85
- | 5 | 3 | 4 | 1 |
86
-
78
+ | | tail | head | weight |
79
+ |---:|-------:|-------:|---------:|
80
+ | 0 | 0 | 1 | 1.0 |
81
+ | 1 | 0 | 2 | 4.0 |
82
+ | 2 | 1 | 2 | 2.0 |
83
+ | 3 | 2 | 3 | 1.5 |
84
+ | 4 | 2 | 4 | 3.0 |
85
+ | 5 | 3 | 4 | 1.0 |
87
86
 
88
87
  ```python
89
88
  # Initialize the Dijkstra object
@@ -94,10 +93,18 @@ shortest_paths = dijkstra.run(vertex_idx=0)
94
93
  print("Shortest paths:", shortest_paths)
95
94
  ```
96
95
 
97
- Shortest paths: [0. 1. 3. 4. 5.]
96
+ Shortest paths: [0. 1. 3. 4.5 5.5]
98
97
 
99
98
  We get the shortest paths from the source node 0 to all other nodes in the graph. The output is an array with the shortest path length to each node. A path length is the sum of the weights of the edges in the path.
100
99
 
100
+ ## Why Use Edsger?
101
+
102
+ Edsger is designed to be **dataframe-friendly**, providing seamless integration with pandas workflows for graph algorithms. Also it is rather efficient. Our benchmarks on the USA road network (23.9M vertices, 57.7M edges) demonstrate nice performance:
103
+
104
+ <img src="docs/source/assets/dijkstra_benchmark_comparison.png" alt="Dijkstra Performance Comparison" width="700">
105
+
106
+ *Benchmark performed on Intel i9-12900H laptop.*
107
+
101
108
  ## Contributing
102
109
 
103
110
  We welcome contributions to the Edsger library. If you have any suggestions, bug reports, or feature requests, please open an issue on our [GitHub repository](https://github.com/aetperf/Edsger).
@@ -0,0 +1,33 @@
1
+ edsger-0.1.2.dist-info/RECORD,,
2
+ edsger-0.1.2.dist-info/WHEEL,sha256=qxQkdhERtGxJzqnVOBnucx1aUmU2n3HmuzYdln_LyOw,109
3
+ edsger-0.1.2.dist-info/top_level.txt,sha256=QvhzFORJIIot6GzSnDrtGa9KQt9iifCbOC5ULlzY5dg,7
4
+ edsger-0.1.2.dist-info/METADATA,sha256=7WiTPhG8F_e-eTrgOoc4W9144SZO0qwwD1fzjqhbFAQ,5155
5
+ edsger-0.1.2.dist-info/licenses/LICENSE,sha256=eNjfz5CInLrVdczJbhazCKtb8-0qB0UaXZ3bXN0zio0,1111
6
+ edsger-0.1.2.dist-info/licenses/AUTHORS.rst,sha256=9lqpqjiC4XukK7jdxXwKJJrddqwCV2DjpYTqhpP6znA,105
7
+ edsger/spiess_florian.c,sha256=Z1BP7RE0MMBCHi2kD5oC-qqlEupst5CDRCa-UqhAxjs,1355775
8
+ edsger/dijkstra.c,sha256=exedbQVI9Qkthy6MxNwhlwhUAmAdMXbeZOjaoM4DbzM,1433977
9
+ edsger/_version.py,sha256=K5SiDdEGYMpdqXThrqwTqECJJBOQNTQDrnpc2K5mzKs,21
10
+ edsger/spiess_florian.cpython-311-darwin.so,sha256=Jh7BUGAa1vcLq6gqRxD1V_Y7SIA89KiZU9k2tLxfZkU,276312
11
+ edsger/commons.c,sha256=9yedMHP88MZErUCyJiWB0C6T6QoTjQ3TRzz7y-fmobc,343009
12
+ edsger/star.c,sha256=QEcLzjr7CS1g49oDRIOTyu9lK67emVuNiNRIqN6VKME,1319073
13
+ edsger/path_tracking.cpython-311-darwin.so,sha256=1rEt-_0dfUHeDT4rPXdn5O019WaclPrfaiotJWaZcgs,191200
14
+ edsger/commons.pyx,sha256=rPWrq1zfN_IuTgLgvvQe8ma7bU1e3V8lWbBEFH5Vaw8,805
15
+ edsger/pq_4ary_dec_0b.pxd,sha256=MbQuP1y1t6_2fJRkpqRPV2lmatwfqOxjsrb1GLfEudA,1065
16
+ edsger/__init__.py,sha256=CoqO_GHq5NC94S2JrYjf6dVGOKnxJ2TRBDOjikyscOY,40
17
+ edsger/prefetch_compat.h,sha256=6HfoyHI0dQE_MDsYHjUiX77Hg_z8eH6kRwN_5RAhbYo,806
18
+ edsger/path_tracking.c,sha256=7uhxU1QqwVD8JIPDAWnqa8xLPxSyNcjj_gKT6sRIOpo,1143939
19
+ edsger/spiess_florian.pyx,sha256=9CrcMyzwSXaC_EdSl1uiD9yhFH6ACtooZOMfYw6vhvA,9566
20
+ edsger/pq_4ary_dec_0b.c,sha256=sUxHeTGaoEafAkrge_oarZulcSbsMfGc8zdSIbrtkD4,1367251
21
+ edsger/dijkstra.cpython-311-darwin.so,sha256=3xtxUVPhBdVLR6-S9GGGzER7oWa9UMRxoIU4neIYXCU,292080
22
+ edsger/networks.py,sha256=o_dKC6fcxsqWr3fE0m5sUQkpZO-0B2x-w51l_1fyzAc,10316
23
+ edsger/commons.pxd,sha256=P9-n7ChbSIMSBRRY_lY3gBwXYUSvqJG-S_6e0dZTYU8,439
24
+ edsger/.gitignore,sha256=tWvEr3sBkY2ODntRp4_IUz3cidH-xu1efiOQK9DfK04,12
25
+ edsger/utils.py,sha256=igl2xDpkjTuQ5fhDdynQ0ekMSva52BstrTsZaTtE2RI,2034
26
+ edsger/pq_4ary_dec_0b.pyx,sha256=fRJCT79GsCocZgpostfn7t5nkNQALK0A93OJK4fxJR0,17796
27
+ edsger/commons.cpython-311-darwin.so,sha256=fGR441o1wyvlV1uOOcWLVOyP91J7D0pxWF3mbT7Ncko,58016
28
+ edsger/path_tracking.pyx,sha256=uO06fzL8V5KeI3w5FPVJJ13ZtdFGTol6oUjVX4Jjxxs,1807
29
+ edsger/star.cpython-311-darwin.so,sha256=xe-xzBtEBWmLN00fk-JdVcyBpY5FrywQ8I3bbVguyGc,250696
30
+ edsger/path.py,sha256=chpFtMyCRLlYiYDqES9EzwGF4anHteF_u0oQMuvCakA,29609
31
+ edsger/dijkstra.pyx,sha256=bHn94mqXCwyc3EY5EKNmfF1yFnN4ggbPrpzgQx1o32Y,17388
32
+ edsger/star.pyx,sha256=MVS4kylmMAXOHm8liTfTMLzrr0jhA3cRU3-KCfVjNNM,9246
33
+ edsger/pq_4ary_dec_0b.cpython-311-darwin.so,sha256=OS3RHv-FKNQQmfFzdg4Khf-wfBbAC1WtHMGZTNUc5yY,214488
@@ -1,32 +0,0 @@
1
- edsger/spiess_florian.c,sha256=KU6OZ1sliQpUGlMG73c6Odb3wA-E38F9AhMHrQ3c_Tc,1356872
2
- edsger/dijkstra.c,sha256=JLA5x6_f9xiNpQtTSx0K1Mljo9vcaFjdxMLnlMawgQc,1429833
3
- edsger/_version.py,sha256=8oAxKUG747GUokmxjkrWejyJa5yPNEsoJDlXxoedxTw,21
4
- edsger/spiess_florian.cpython-311-darwin.so,sha256=wiIhSju1ENImbR5729POg6GSOtczgfGrj-uDUUlg3Ps,259064
5
- edsger/commons.c,sha256=Iuh_KvawjvJjiOliIKzQYMOhFSt4UmS9lK6FuqdIli4,342928
6
- edsger/star.c,sha256=n3sC5MnnvC4WawMdnLk6fDCoCRSsbFZQ5eMsnX50lKs,1318992
7
- edsger/path_tracking.cpython-311-darwin.so,sha256=li3qGPI5PjVclaufKO4u-8buXrBMy0SZ3pJUlnkVxvU,188576
8
- edsger/commons.pyx,sha256=rPWrq1zfN_IuTgLgvvQe8ma7bU1e3V8lWbBEFH5Vaw8,805
9
- edsger/pq_4ary_dec_0b.pxd,sha256=l-FIgqJzd8Oelh0DgvqPe59ZMQeo2R3qjPXQwgRGX0w,1002
10
- edsger/__init__.py,sha256=CoqO_GHq5NC94S2JrYjf6dVGOKnxJ2TRBDOjikyscOY,40
11
- edsger/path_tracking.c,sha256=UFvhkdV4qUNENwWRd8J-Zw2XJbavgwCLNp0DAqGaN2Q,1143858
12
- edsger/spiess_florian.pyx,sha256=9CrcMyzwSXaC_EdSl1uiD9yhFH6ACtooZOMfYw6vhvA,9566
13
- edsger/pq_4ary_dec_0b.c,sha256=aqjMNaO6Ccc2Cdzigbk-jTKzzt9RZ2kBIOPjSiNUE8g,1367247
14
- edsger/dijkstra.cpython-311-darwin.so,sha256=kqSjClwVdpO2P2FHuJyeIPbrUMUMiRBgsjjzH1d8lYU,292112
15
- edsger/networks.py,sha256=o_dKC6fcxsqWr3fE0m5sUQkpZO-0B2x-w51l_1fyzAc,10316
16
- edsger/commons.pxd,sha256=P9-n7ChbSIMSBRRY_lY3gBwXYUSvqJG-S_6e0dZTYU8,439
17
- edsger/.gitignore,sha256=tWvEr3sBkY2ODntRp4_IUz3cidH-xu1efiOQK9DfK04,12
18
- edsger/utils.py,sha256=igl2xDpkjTuQ5fhDdynQ0ekMSva52BstrTsZaTtE2RI,2034
19
- edsger/pq_4ary_dec_0b.pyx,sha256=mWZUpnybIH9i8KoPYZV_l9cXkbpQz5GvXi_VUIuYwGo,17829
20
- edsger/commons.cpython-311-darwin.so,sha256=giTgyHh8ul4WHghmoynf-dZokZdUfSyJ2VFagnWceoI,57184
21
- edsger/path_tracking.pyx,sha256=nv3TUqlXaVNOVHexZumK0pScMlCHOsxaraeo1hO3HKU,1807
22
- edsger/star.cpython-311-darwin.so,sha256=VpT6A9yBckYJbEE_9y_5Q9FTelYe0WcJlENmn20MLYQ,240120
23
- edsger/path.py,sha256=chpFtMyCRLlYiYDqES9EzwGF4anHteF_u0oQMuvCakA,29609
24
- edsger/dijkstra.pyx,sha256=8LScm1j_5juXNrPQbM_n6x-G8P6HihzMmT4Nt3FP7gU,16326
25
- edsger/star.pyx,sha256=8evOrVygSLI-mMXsXFBfcw9qTqkeo3Ncm0ua5jjEMwE,9246
26
- edsger/pq_4ary_dec_0b.cpython-311-darwin.so,sha256=F7N4BvNwRr4yId5HwFksM9SEHYA_3tufOrkB6BB87K8,226552
27
- edsger-0.1.1.dist-info/RECORD,,
28
- edsger-0.1.1.dist-info/WHEEL,sha256=qxQkdhERtGxJzqnVOBnucx1aUmU2n3HmuzYdln_LyOw,109
29
- edsger-0.1.1.dist-info/top_level.txt,sha256=QvhzFORJIIot6GzSnDrtGa9KQt9iifCbOC5ULlzY5dg,7
30
- edsger-0.1.1.dist-info/METADATA,sha256=XFq5xeiFwVheYlfC8ApWaFwqoUI8uQZ0272_gQhZQbQ,4678
31
- edsger-0.1.1.dist-info/licenses/LICENSE,sha256=eNjfz5CInLrVdczJbhazCKtb8-0qB0UaXZ3bXN0zio0,1111
32
- edsger-0.1.1.dist-info/licenses/AUTHORS.rst,sha256=9lqpqjiC4XukK7jdxXwKJJrddqwCV2DjpYTqhpP6znA,105
File without changes