Python Graph Library
Project description
NetFog
[!CAUTION] Work in Progress: This library is in its early stages of development (Alpha).
- Unstable API: Functions and class structures may change significantly between versions.
- Bugs Expected: You might encounter unexpected behavior. Please feel free to open an issue!
Overview
NetFog is a library for creating and manipulating graphs. Currently supports / planned features:
- Directed and undirected graphs
- Weighted edges
- Metrics
- Algorithms like BFS, DFS, Dijkstra
- Graph visualization
- Simulations
This library is designed to be lightweight, fast, and easy to use.
Installation
You can install NetFog directly from PyPI using pip:
pip install netfog
Quick Start
from netfog import Graph, Node
# Creates the graph object
g = Graph()
# Add nodes
g.add_node("A")
g.add_node("B")
# Add a connection (edge or arc)
# Here we use the label of the nodes for easier manipulation
g.create_connection("A", "B", weight=10, directed=False)
# Check all connections
print(g.get_connections())
Bibliometric Networks via OpenAlex
from netfog import Graph, OpenAlexGraphType
# 1. Grafo de coautoria baseado em um termo de busca
grafo_coautoria = Graph.from_openalex(
api_key="SUA_CHAVE_API_AQUI",
graph_type=OpenAlexGraphType.Coauthorship,
author="Jesus Mena-Chalco",
limit=100
)
# 2. Grafo de coocorrência de palavras-chave (intensidade mínima: 3)
grafo_coocorrencia = Graph.from_openalex(
api_key="SUA_CHAVE_API_AQUI",
graph_type=OpenAlexGraphType.KeywordCooccurrence,
keyword="Bibliometrics",
limit=100,
min_weight=3
)
# 3. Grafo de cocitação de documentos baseado em um autor específico
grafo_cocitacao_documentos = Graph.from_openalex(
api_key="SUA_CHAVE_API_AQUI",
graph_type=OpenAlexGraphType.WorkCocitation,
search="Bibliometrics",
limit=100
)
# 4. Grafo de cocitação de autores baseado em um autor específico
grafo_cocitacao_autores = Graph.from_openalex(
api_key="SUA_CHAVE_API_AQUI",
graph_type=OpenAlexGraphType.AuthorCocitation,
search="Bibliometrics",
limit=100
)
For full documentation, see docs
Project details
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 netfog-0.2.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: netfog-0.2.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.1 MB
- Tags: PyPy, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
405a651a595f3cce24257f24bfd98ae058a9bed3c2d06aa78b0857f2080cccf5
|
|
| MD5 |
3d461533e00a4d6604530e053b9c6c8b
|
|
| BLAKE2b-256 |
3b0c4661f743cd1776d4f807a36d9d8dae4e1406b42dc57d87ae8fb8a6a4171d
|
File details
Details for the file netfog-0.2.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: netfog-0.2.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.14t, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc9e312a525df4e4aec75aaee7fc1f8179ebd70ffdae76044a0ffe3d64be7d56
|
|
| MD5 |
897f15eaedbac24583dfd07ff0fa873d
|
|
| BLAKE2b-256 |
a6182b110d496ffe7436be5ec41babedc124f3dcf4276b84f49edc7e00a97a4d
|
File details
Details for the file netfog-0.2.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: netfog-0.2.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdbf5d5a16cff5c9481de91cbe580171822b1ffbec7607bc400848f82c1ef3a6
|
|
| MD5 |
8188b8fdf030ba631ea6a4f72735fd5c
|
|
| BLAKE2b-256 |
de92fce127ac6109c2670a0d3b3392c3573cd22122dea55d1034ca5ad32a3a06
|
File details
Details for the file netfog-0.2.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: netfog-0.2.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5806181afd3378878e649475d286961f66acea293a4d68621a02383370fd2f1
|
|
| MD5 |
4a56f5f89de45caa5e3146b051d16328
|
|
| BLAKE2b-256 |
50018bf9e60a706db7009ee187e205e50bf05ebcbadb437ffd584c1e63c6a775
|
File details
Details for the file netfog-0.2.0-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: netfog-0.2.0-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e7fcb43898bda9197b3d010a78d63ad45093665be478728c3e5c24e198f339a
|
|
| MD5 |
239604b16fb50f6270bb4df0402e64bb
|
|
| BLAKE2b-256 |
da79cbc8d08e857337bfc63653e16b32fc327a59cf5a991a00bc5b294affca19
|
File details
Details for the file netfog-0.2.0-cp314-cp314-macosx_10_12_x86_64.whl.
File metadata
- Download URL: netfog-0.2.0-cp314-cp314-macosx_10_12_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.14, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90fad60b4a7ef34339eea2e1d96596b27f79d9a6b03d6b26652551b6d3e36d72
|
|
| MD5 |
0e54b98271a8242e929b9a16ca3c44a6
|
|
| BLAKE2b-256 |
84f78f38862f1090e7126f2d1a27365ee6b3f706ca45a0c25215b51ed5b16f35
|
File details
Details for the file netfog-0.2.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: netfog-0.2.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23a5a90af3efd5836d3173bfd0861f4f84e5ef11111dd098a24f7778753b37f7
|
|
| MD5 |
84389d0ad65c1fedbcc09773d4e21220
|
|
| BLAKE2b-256 |
1e6a0c71b66fbad54e3478edfb1d7a060d0060bcf6bbda7c6c257b3a603897e9
|
File details
Details for the file netfog-0.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: netfog-0.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b90962187cf5afd426dd231122a5ead884ba4cd3769b8e5442501d984d8ec54e
|
|
| MD5 |
5db5d5682162103b0e9a6bb3fe2d652f
|
|
| BLAKE2b-256 |
658e208a2d4aad31c75b02e4a30c6e0215ed770485464076dd30e9e86ac1c4c6
|
File details
Details for the file netfog-0.2.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: netfog-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b8cb6d810ef6a7f6eaee190366d50caad6efc3d63cd3a89a201e2e811805b5c
|
|
| MD5 |
912a9829dd709c11acfd4d0f4462b38a
|
|
| BLAKE2b-256 |
daf6247bd86f17abad1fc46e831da14e45c29f4b54a25e1ebf2e97c64207a88c
|
File details
Details for the file netfog-0.2.0-cp313-cp313-macosx_10_12_x86_64.whl.
File metadata
- Download URL: netfog-0.2.0-cp313-cp313-macosx_10_12_x86_64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.13, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d38d18f59524229c24787150a38ef100531458c7f0f8161ed0e2325fd6316294
|
|
| MD5 |
4d75e5b0af5fb6ae8eb4eebdd6e1fc38
|
|
| BLAKE2b-256 |
24e8aa47745d419d413529945e1b8842777cb6500e8c604235f2af1822ee3e8b
|
File details
Details for the file netfog-0.2.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: netfog-0.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6a00a1e505b6a6d8b44d304fc30c43e67f235015588fda58a98288f3e7edffa
|
|
| MD5 |
fd49917d571c8642b8a79805888cc003
|
|
| BLAKE2b-256 |
01ce929b0a5dbd9273abe23b563d8e92d8fe6aeedcd77c2fa86bfc8165d9c5a1
|
File details
Details for the file netfog-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: netfog-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a8b38bfad4d00714a9842f1806546fd8dfbb253836ecf0b06fbfa9d394a6d0c
|
|
| MD5 |
5de940148b5327c88687fbce1a28b984
|
|
| BLAKE2b-256 |
5139d036dbb7e6619bed2a7676d8a9980477f8742e9774c35da5c35503c389f0
|
File details
Details for the file netfog-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: netfog-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c1ff3a23f2b28b8a455833cb2db71ee91c33ecbd8ecdbc534286d6d84722341
|
|
| MD5 |
9b928012a915198d86e194668da91fa0
|
|
| BLAKE2b-256 |
984a57033a047bf01c39e41d415014823441fd37343268eb7bf5a1973a4bebb2
|
File details
Details for the file netfog-0.2.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: netfog-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bef14e3a9735ebefe494db7d8f1687f6908b2703d8ded08bb7d3f8b663cca2fd
|
|
| MD5 |
25dbb5345f24521cb53fc1f7022395ad
|
|
| BLAKE2b-256 |
cb92cb20322e52f0f27ea7d0fcb3bb0304877ce2c04d492c8df82813d2b9c692
|
File details
Details for the file netfog-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: netfog-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2381bad4406d2f824275f9a1074a83f44276efe59e2e6e6b4dca0ed6b8772d00
|
|
| MD5 |
945ffb7711caf9dd3bbeb7958ab73171
|
|
| BLAKE2b-256 |
fe257cd4409ed4af4efc4527157fa240ac59dcbb28ffb0af021454fa6720f4e3
|
File details
Details for the file netfog-0.2.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: netfog-0.2.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4cb1f609a7e57ee2d2bc848c5a4bc0c22406bb4d782e80d87234a82ee169c28
|
|
| MD5 |
e2941bb10f12c629d093478c4333d52b
|
|
| BLAKE2b-256 |
0b8e0bc99bef8030ca8f0685f7c75fba456d5484f4f6606023e38880e485f50a
|
File details
Details for the file netfog-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: netfog-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c455bf662817cad1f88173a837eef9601d052294d7a9cf113d1efbd70c117d5e
|
|
| MD5 |
efe1b15bc9611d88bb8730017e2eb374
|
|
| BLAKE2b-256 |
eb66b3c18128a252a3d391697e1195550d42054ff31beb44ae58488babd94ac4
|
File details
Details for the file netfog-0.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: netfog-0.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5cd2d0b4b25b4834f17361548875ee2d06f8db25e6b6bc9ecd2cac8c13e6042
|
|
| MD5 |
09ffe896ab3e8da773ad3a0b8a83e945
|
|
| BLAKE2b-256 |
577697c05c9336ed5c5c90a9a695349e40dfd85cfcee4ca658ecbad0d5f8dc86
|
File details
Details for the file netfog-0.2.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: netfog-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5ae7968d876fb050aa0d5dbe26b2a092e8e70673056b5d5a95dc7074b09efa7
|
|
| MD5 |
b9b397f1f859a4c767a749534fa98014
|
|
| BLAKE2b-256 |
696a420b1056b7fb522d6a3c6ea9552514129312d55892bb61996f3b611b3ffa
|
File details
Details for the file netfog-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl.
File metadata
- Download URL: netfog-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a44b1b37bcdad1d3f9abbed20e6be5d60c2d7b7858e60364497089d9c93c962e
|
|
| MD5 |
8e4f1d3dd3be67fe95dfad45a0b4e96e
|
|
| BLAKE2b-256 |
99ea6d53210d0db569d6e7ff99c5b40aecf12398adbf73682627e0c900b1ef72
|