You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,3 +54,4 @@ All the procedures in scipy `csgraph` module [here](https://docs.scipy.org/doc/s
54
54
55
55
**Only float edge weights** Eventually we might support complex edge weight objects, but for now we only support 32bit floats.
56
56
57
+
**Accessing nodes by their name is O(log2(n))** Internally, CSRGraphs' map of node names is a (binary searched) sorted array indexing into node ID. Since node names are accessed much more often than than node IDs by name, this is a worthy tradeoff, but it may be unexpected if you heavily use the `G[node_name]` operator.
0 commit comments