Python bindings for the ORbit Counting Algorithm
Project description
Python Bindings for ORCA
This package implements python bindings for the ORbit Counting Algorithm.
The original source code was modified to avoid memory leaks upon repeated function calls and allow for parallel orbit counting when provided with several graphs (using OpenMP).
Installation
Install via pip:
pip install orbit-count
Usage
This package provides two functinos, namely node_orbit_counts and edge_orbit_counts. Both functions accept networkx graphs and return numpy arrays.
import networkx as nx
import orbit_count
graph = nx.erdos_renyi_graph(64, 0.2, seed=0) # Graph with N nodes and M edges
# Graphlet size may be 4 or 5
node_count = orbit_count.node_orbit_counts(graph, graphlet_size=4) # Returns numpy array of shape (N, 15)
edge_count = orbit_count.edge_orbit_counts(graph, graphlet_size=4) # Returns numpy array of shape (M, 12)
# To get a specific ordering of counts, pass node_list or edge_list
node_count = orbit_count.node_orbit_counts(graph, graphlet_size=5, node_list=list(graph.nodes))
edge_count = orbit_count.edge_orbit_counts(graph, graphlet_size=5, edge_list=list(graph.edges))
# Count orbits in multiple graphs in parallel
node_count = orbit_count.batched_node_orbit_counts([nx.erdos_renyi_graph(64, 0.2, seed=i) for i in range(32)], graphlet_size=4)
edge_count = orbit_count.batched_edge_orbit_counts([nx.erdos_renyi_graph(64, 0.2, seed=i) for i in range(32)], graphlet_size=4)
License
The source (i.e., the code provided in this GitHub repository) is licensed under GPL v3, as detailed in LICENSE.md. The wheels may bundle an external implementation of OpenMP as a dynamically linked library. We refer to LICENSE.wheel.md for information on how these components are licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file orbit_count-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 209.5 kB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28400cbdcad24a5359d5d5e4d97a80896ee0cfe9e8b2bf64175dfa782b305ae9
|
|
| MD5 |
4adc282dc9fa8595532a28e96631dd9a
|
|
| BLAKE2b-256 |
3f975275639e2da7542fe115066030dc3fbd4292e4b17ca300baea311e037c7e
|
File details
Details for the file orbit_count-0.1.0-cp314-cp314-macosx_12_0_arm64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp314-cp314-macosx_12_0_arm64.whl
- Upload date:
- Size: 341.8 kB
- Tags: CPython 3.14, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d766e5106da752c1ce79ba9c49b72b7651ca1f17dd50fe73a35a1cd8f1a9e30d
|
|
| MD5 |
f4b078ccbb9d62fc1d2fb2350a881b44
|
|
| BLAKE2b-256 |
868d6aa96e38efd028a65969e2c4a2fb4cf2fa95605f81dcba200019b5b52b28
|
File details
Details for the file orbit_count-0.1.0-cp314-cp314-macosx_10_15_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp314-cp314-macosx_10_15_x86_64.whl
- Upload date:
- Size: 392.2 kB
- Tags: CPython 3.14, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
002c316ed2da9a17f653cfedaeee75a89293907da971fc8c2889c184b4715a1b
|
|
| MD5 |
36424e23f1b2eb1b51431bfd6642f843
|
|
| BLAKE2b-256 |
66ceb1fa7bdb3f066423a6c4ebdcf52d4e22a362cb203a11086e5bb8e1d1e630
|
File details
Details for the file orbit_count-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 200.8 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bef8f00163c806aba619307c62202501b10177a44415d7a8e7ece88a1bd82e33
|
|
| MD5 |
72ff1aabedf656dfc6292bd4e96b4631
|
|
| BLAKE2b-256 |
26f53dc2848fe7cdcb7c4b6b3a56ae539b757c6ba52fd6bdb778fc45604362df
|
File details
Details for the file orbit_count-0.1.0-cp313-cp313-macosx_12_0_arm64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp313-cp313-macosx_12_0_arm64.whl
- Upload date:
- Size: 332.5 kB
- Tags: CPython 3.13, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2691714e52dd16a125ace3fea238cda586a87deb2a5228fc1d8f6dca145cc97
|
|
| MD5 |
43ecac699f81d9d222f10d94fb123d70
|
|
| BLAKE2b-256 |
0dd73306e53c7b1b06c129742175674ebe13c2966f631b1faf25d607fb537fd4
|
File details
Details for the file orbit_count-0.1.0-cp313-cp313-macosx_10_13_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp313-cp313-macosx_10_13_x86_64.whl
- Upload date:
- Size: 380.4 kB
- Tags: CPython 3.13, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
004a5731052fc7136802db166fe4e1b5dcf8776fe28925f2795f0ff1f308a8ee
|
|
| MD5 |
450dfe9396f9c9389fe6fae7cbc2d982
|
|
| BLAKE2b-256 |
eb0924ba28fe0348f8aa988d8bd749a5002f630375f5d6291c0f8865790579ea
|
File details
Details for the file orbit_count-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 200.9 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a0de8a92cc54ac540fd95048b0142a438fc751e914da3b28d00e7eef6c7cbad
|
|
| MD5 |
b1955d264215454443e2cfc5f0c087a5
|
|
| BLAKE2b-256 |
82ff7e73c5ce0bff40b6135556e53fb9f35c7b41d6050e8455c15390a37acc48
|
File details
Details for the file orbit_count-0.1.0-cp312-cp312-macosx_12_0_arm64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp312-cp312-macosx_12_0_arm64.whl
- Upload date:
- Size: 332.5 kB
- Tags: CPython 3.12, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
605fcc76fd2313d64d6aa2f6d3852899465c3201fcf3272f6b8b5b54fb522f44
|
|
| MD5 |
ecd92ee7fa2916288f8ea1c117c61535
|
|
| BLAKE2b-256 |
a429fbb0cdbffe24c6c0037eac1d322eca69565cddf0c87c7505ec2ff326edfd
|
File details
Details for the file orbit_count-0.1.0-cp312-cp312-macosx_10_13_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp312-cp312-macosx_10_13_x86_64.whl
- Upload date:
- Size: 380.4 kB
- Tags: CPython 3.12, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
513526556eb294dcd5392d9330f45a162942e010f27e446c69abf3341fce86c2
|
|
| MD5 |
ae4e69fd190e1b846c76f6a387299197
|
|
| BLAKE2b-256 |
3853d9e0484859d0acae3b75d30554a5d985af0e3b0695539afdc536d102a4f8
|
File details
Details for the file orbit_count-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 201.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07d1660adc22ce9297769f5ef0bcb1a537f25a658e20b3ac98951507ea902fc7
|
|
| MD5 |
0031e0da6189f294043fd67d4e9d0d5b
|
|
| BLAKE2b-256 |
5330f3bb21764792fe0da00645b29ae35c17247914a45cfea9d07498e5e18462
|
File details
Details for the file orbit_count-0.1.0-cp311-cp311-macosx_12_0_arm64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp311-cp311-macosx_12_0_arm64.whl
- Upload date:
- Size: 333.9 kB
- Tags: CPython 3.11, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d83780e929dfddee06da6e834ebfd75f2182014a2b7cff064afa693ac7a74393
|
|
| MD5 |
96f9efae4fbeb759e567d96a20e9af64
|
|
| BLAKE2b-256 |
8b476f8f46b3efa842ed119e184e99361381792acd378e2d36e095344ec51e44
|
File details
Details for the file orbit_count-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 382.9 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24ee69b96de98e64865960cbc4774b6d0779b8a958b54e4f6be4f60132bfd347
|
|
| MD5 |
0e3ebd4d99c88c59f032360caa519a44
|
|
| BLAKE2b-256 |
d169e610707348b724510aef50589ea171141452cef37155f5171bc926045cc2
|
File details
Details for the file orbit_count-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 199.8 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b1999e303ffb57fc70c30708a0b479658dfe1f53708b265763b4ef91c5ef5e2
|
|
| MD5 |
8bfdfcb3887ba155f0f572a8dbada2b2
|
|
| BLAKE2b-256 |
d8ccd0778cd5f7b8b51de3341ca5a833b7135425ba9b3aea945e91b47300afab
|
File details
Details for the file orbit_count-0.1.0-cp310-cp310-macosx_12_0_arm64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp310-cp310-macosx_12_0_arm64.whl
- Upload date:
- Size: 332.3 kB
- Tags: CPython 3.10, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
921868a052b44fdfb92e69ee3335c1b794ec176c542a04f55043c8d94aeb00a6
|
|
| MD5 |
d40ffa2d76e43607b20380d59c316088
|
|
| BLAKE2b-256 |
67020167f416fdef58d4833ffb96dcdda4602a49bfe6287f587731bc19205ed9
|
File details
Details for the file orbit_count-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 381.5 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33bd5d7108a7dff718728ee6bbabd3cfc2c3f1c609196d93d5bd750234cee949
|
|
| MD5 |
2f33e1a18dd0f756a129163daae2c424
|
|
| BLAKE2b-256 |
608d0d05db3f582496521b3ed71c3f8a290eec11c0c3751e08718411a473549f
|
File details
Details for the file orbit_count-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 199.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a52d7e977c50b255bd61a34eaf3968a12a475ad0aafd79d7ea4547afc6d0db6
|
|
| MD5 |
4e26fd11e0e13ea718f6aba221cce02c
|
|
| BLAKE2b-256 |
66aa19e0dcdd085095141fff7da3a780856d65266724aa78823909841af21cde
|
File details
Details for the file orbit_count-0.1.0-cp39-cp39-macosx_12_0_arm64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp39-cp39-macosx_12_0_arm64.whl
- Upload date:
- Size: 332.4 kB
- Tags: CPython 3.9, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d67f4d96485215d5a22740566317ecf9fec58c3cce36b515a4cdab07476db88
|
|
| MD5 |
f128261a56e92af4182b4bf48af7f44e
|
|
| BLAKE2b-256 |
e0fd6dda20245b0847473d22167453d8b8c18f625f22ad83cc64a8e5e93a573b
|
File details
Details for the file orbit_count-0.1.0-cp39-cp39-macosx_10_9_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 381.6 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e05040547c99fdd6458311ad08083d7737190c74d1f64eead3f2e4c1b9a49613
|
|
| MD5 |
b90791b4db5e8a8a591a74ff706194c6
|
|
| BLAKE2b-256 |
3fb9e021a387587e5f8d8da40556a1ecc17e23591f5895977be2ee5a66539e40
|
File details
Details for the file orbit_count-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 199.7 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c8af26e31c01420190683096bc9a8225f3de77dd297e0f53d014aaeb75df7a0
|
|
| MD5 |
e4ea85c1d8a0bbb8671b8fd1a6bbaa59
|
|
| BLAKE2b-256 |
aa5e95a759d4ca26b583f816ce3b8f0e389559e4348a5b3256b7ff40c5cb4669
|
File details
Details for the file orbit_count-0.1.0-cp38-cp38-macosx_12_0_arm64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp38-cp38-macosx_12_0_arm64.whl
- Upload date:
- Size: 332.2 kB
- Tags: CPython 3.8, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7593fa586672050047c53f8ed556ed260ba2da9fd68a657030d116ee8c7c375f
|
|
| MD5 |
06e310c2206138e4a859c2714f470d11
|
|
| BLAKE2b-256 |
84b8773cdf53bd234b5bc7043016e5ecbd94f4c2ebf5c988d8a1e8dc47ad0579
|
File details
Details for the file orbit_count-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 381.3 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bb56899848ab0a4ada7b3240a4408c61a57ce250b6039ede762fb91d9f1b23b
|
|
| MD5 |
b529b46cab00e880409257400129d699
|
|
| BLAKE2b-256 |
e8b3529cef2a6bf37f4a69bad401e4476fafbd00cdd7c3cf1349aec8c06464f6
|
File details
Details for the file orbit_count-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 201.0 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47c7357d5425bca016fe5415631002c1999deb80b810bc8073f03cb73c85117a
|
|
| MD5 |
613da22cea0f97f3e4d02c08ce31e7cf
|
|
| BLAKE2b-256 |
85a548912dbbd098d2cb572fa806a1259cca91e8dad9997d359af8ef7c1fc206
|
File details
Details for the file orbit_count-0.1.0-cp37-cp37m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: orbit_count-0.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 381.2 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dd3623dc60ac6dcd4c26cc2523572388739c3e45303b2442b2a308b72c7a728
|
|
| MD5 |
160c41923e2e973e11949ad377a0c5e2
|
|
| BLAKE2b-256 |
aa900444241cb3ee75d240ac85ec2a9ade50ceae11442d22162a1710817bd117
|