edsger 0.1.1__cp310-cp310-macosx_11_0_arm64.whl → 0.1.2__cp310-cp310-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=wyHf6UDzyHyUK-aDYscyyyExpYI7SeEZ9xjyEiU4cnw,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.cpython-310-darwin.so,sha256=qn42_VHCEqTVk4DhJj5NuNrk2k_G3fEdDiKEc-T-dwU,276312
8
+ edsger/path_tracking.cpython-310-darwin.so,sha256=X7Sxu3-GIyOgXv7wE3rc4z24ChVB4hTBB96hoc8NCLY,191520
9
+ edsger/spiess_florian.c,sha256=QVmBpMwFZvzaLvAlmjMdWFATmVXHMNX3JzD9fNBlrgg,1355920
10
+ edsger/dijkstra.c,sha256=SBvPArDeiqB46qQHTEaQ7N9GtIlq7QMx-7CJK5KVaTU,1434122
11
+ edsger/_version.py,sha256=K5SiDdEGYMpdqXThrqwTqECJJBOQNTQDrnpc2K5mzKs,21
12
+ edsger/commons.c,sha256=hJcPQlsYZbYvnwgUt2YZZ9v9M9HUe0Po5i_I7fuzuu4,343154
13
+ edsger/star.c,sha256=NX8D0n0A9mQ4X7JO54tE0lr2HBqUS7f5Xys6X8PFlUk,1319218
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=rCqsO29t8TpGQx7iY_kGehMSCD5G0X0H6KVTdrJlvMA,1144084
19
+ edsger/spiess_florian.pyx,sha256=9CrcMyzwSXaC_EdSl1uiD9yhFH6ACtooZOMfYw6vhvA,9566
20
+ edsger/pq_4ary_dec_0b.c,sha256=R6-xgezwbAhVr-wAxTt871YSMnu7ZlkaVoIM6DCE9Ug,1367396
21
+ edsger/commons.cpython-310-darwin.so,sha256=1nMBfv_SmbS3-BgyuXhSaybEkMgrEhntO3ydnuqDQcU,58320
22
+ edsger/networks.py,sha256=o_dKC6fcxsqWr3fE0m5sUQkpZO-0B2x-w51l_1fyzAc,10316
23
+ edsger/commons.pxd,sha256=P9-n7ChbSIMSBRRY_lY3gBwXYUSvqJG-S_6e0dZTYU8,439
24
+ edsger/star.cpython-310-darwin.so,sha256=sx_BDQ6lXWSLMeQm3wnFoNlTjkZRzhzUt3hPMYnjufQ,250728
25
+ edsger/.gitignore,sha256=tWvEr3sBkY2ODntRp4_IUz3cidH-xu1efiOQK9DfK04,12
26
+ edsger/utils.py,sha256=igl2xDpkjTuQ5fhDdynQ0ekMSva52BstrTsZaTtE2RI,2034
27
+ edsger/pq_4ary_dec_0b.pyx,sha256=fRJCT79GsCocZgpostfn7t5nkNQALK0A93OJK4fxJR0,17796
28
+ edsger/pq_4ary_dec_0b.cpython-310-darwin.so,sha256=LJXAHvvzr6wJjagAgVBS0vF3RFsirwNHZ_1AX57plSI,214168
29
+ edsger/dijkstra.cpython-310-darwin.so,sha256=C2TozYvwQX13qhKLSfauDisCaMByLSFanfLhIIiPD5U,291824
30
+ edsger/path_tracking.pyx,sha256=uO06fzL8V5KeI3w5FPVJJ13ZtdFGTol6oUjVX4Jjxxs,1807
31
+ edsger/path.py,sha256=chpFtMyCRLlYiYDqES9EzwGF4anHteF_u0oQMuvCakA,29609
32
+ edsger/dijkstra.pyx,sha256=bHn94mqXCwyc3EY5EKNmfF1yFnN4ggbPrpzgQx1o32Y,17388
33
+ edsger/star.pyx,sha256=MVS4kylmMAXOHm8liTfTMLzrr0jhA3cRU3-KCfVjNNM,9246
@@ -1,32 +0,0 @@
1
- edsger/spiess_florian.cpython-310-darwin.so,sha256=rkRVfnyAUjCy0DwAc1cVsyKpGs_4DgTevhbKZaoObsk,259176
2
- edsger/path_tracking.cpython-310-darwin.so,sha256=5rc_g28ToC3IgXTxu-upxe8D3jGmytnYSujLBdXS9s4,188800
3
- edsger/spiess_florian.c,sha256=WBCUpgmP7bzsif59qcv3BCHHH_jzXzBhoRk_rKQYMI0,1357017
4
- edsger/dijkstra.c,sha256=XGZ03W9NRBeBEu7fOtG_I_GCPlEN28qETeCAwRnc0GM,1429978
5
- edsger/_version.py,sha256=8oAxKUG747GUokmxjkrWejyJa5yPNEsoJDlXxoedxTw,21
6
- edsger/commons.c,sha256=JEN8plpigKHKBXFx8nz2U2nLZqw_4r-73kgkCKjzqdI,343073
7
- edsger/star.c,sha256=zbrbcFlJFG1qzj6whrlpvtWR2xye4qx4gVPrmmJMs-I,1319137
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=ZFC0uXgSXSPJuOSkmHptOlK50EoQdfYD5PSG1LCiM-E,1144003
12
- edsger/spiess_florian.pyx,sha256=9CrcMyzwSXaC_EdSl1uiD9yhFH6ACtooZOMfYw6vhvA,9566
13
- edsger/pq_4ary_dec_0b.c,sha256=xvR1fICFpdpbfr7XaAyiMc1xtPaZuQlgik3j10Qci04,1367392
14
- edsger/commons.cpython-310-darwin.so,sha256=OtjaiXgvqieZAd-21SW3MM2U6GuJWWCr3jcYuibvSZY,57392
15
- edsger/networks.py,sha256=o_dKC6fcxsqWr3fE0m5sUQkpZO-0B2x-w51l_1fyzAc,10316
16
- edsger/commons.pxd,sha256=P9-n7ChbSIMSBRRY_lY3gBwXYUSvqJG-S_6e0dZTYU8,439
17
- edsger/star.cpython-310-darwin.so,sha256=-cxwcYjR0dCkdd78Iz9GyvlizdRt0xh4tS50bLw3gt0,240056
18
- edsger/.gitignore,sha256=tWvEr3sBkY2ODntRp4_IUz3cidH-xu1efiOQK9DfK04,12
19
- edsger/utils.py,sha256=igl2xDpkjTuQ5fhDdynQ0ekMSva52BstrTsZaTtE2RI,2034
20
- edsger/pq_4ary_dec_0b.pyx,sha256=mWZUpnybIH9i8KoPYZV_l9cXkbpQz5GvXi_VUIuYwGo,17829
21
- edsger/pq_4ary_dec_0b.cpython-310-darwin.so,sha256=GshIjiXwvLiqLA8hB1BK2c2nNQhFZqcqyam_7RM3Pps,226136
22
- edsger/dijkstra.cpython-310-darwin.so,sha256=gT4pUoQYAlG3NB8mCEk0qxmsp9mO-285jD7B8pL5mxU,291824
23
- edsger/path_tracking.pyx,sha256=nv3TUqlXaVNOVHexZumK0pScMlCHOsxaraeo1hO3HKU,1807
24
- edsger/path.py,sha256=chpFtMyCRLlYiYDqES9EzwGF4anHteF_u0oQMuvCakA,29609
25
- edsger/dijkstra.pyx,sha256=8LScm1j_5juXNrPQbM_n6x-G8P6HihzMmT4Nt3FP7gU,16326
26
- edsger/star.pyx,sha256=8evOrVygSLI-mMXsXFBfcw9qTqkeo3Ncm0ua5jjEMwE,9246
27
- edsger-0.1.1.dist-info/RECORD,,
28
- edsger-0.1.1.dist-info/WHEEL,sha256=wyHf6UDzyHyUK-aDYscyyyExpYI7SeEZ9xjyEiU4cnw,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