Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

netfog-0.1.5-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

netfog-0.1.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARM64

netfog-0.1.5-cp314-cp314-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.14Windows x86-64

netfog-0.1.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

netfog-0.1.5-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

netfog-0.1.5-cp314-cp314-macosx_10_12_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

netfog-0.1.5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

netfog-0.1.5-cp313-cp313-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.13Windows x86-64

netfog-0.1.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

netfog-0.1.5-cp313-cp313-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

netfog-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

netfog-0.1.5-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

netfog-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

netfog-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

netfog-0.1.5-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

netfog-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

netfog-0.1.5-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

netfog-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

netfog-0.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

netfog-0.1.5-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

netfog-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file netfog-0.1.5-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b2eb61fc08c186d8ebf0f715e6f7a620e0da8179d1d331ca3840243a2b6a58b8
MD5 e1b4d358135f93d54016af7ccb235173
BLAKE2b-256 53dca9a35e25ef40416f64472a51ef67cc71cc2bc9b2f15939fb37839bffd6af

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 61d22a51a0ea80d8f60ce8a8a6095b9045c73d6705c50a7350a92077fb196b53
MD5 44dfba8d2ad5f3560c3bd2d37dc729e4
BLAKE2b-256 006f0d68e365815418a21f2d6bedb29fceec8b502187168958a2ffaef5b7a2b2

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: netfog-0.1.5-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for netfog-0.1.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 6b0e7458989ab55bb847b2057258566275245f39161b19591bc2e20b3c501934
MD5 1c1ba7e49d3178e7bbdb23a8301e89ef
BLAKE2b-256 3c912dc5079c34a33a4a5a04f7f7f4938eb11d7314803300389d5d576931ba7d

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06e236dc1d8906e454a57add73ab24bb579474c43b87035555a76726d2da56e2
MD5 8d269125ea6dde111c33ce077023b25e
BLAKE2b-256 d54b6fd76e23d82c4a1521fcbd05b54fb54277c7bbdd437a7a97a73c1206773c

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 589cb9cbc2ff90210fe1e57e0840f414d09e3dd05caa9555ae8e5946be772e22
MD5 4d8b92db289e335e3762bfc19e1b44c8
BLAKE2b-256 b008a25eda5f912c83bd9a93884e43981dd1e3d73705685ede28dde905ea007c

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e4c8d98447b664b262dd56cf07e3459514766075a22e64095766e36804faa1cd
MD5 882a95717282ef7e7fa0d3db029c63dc
BLAKE2b-256 926962c1c5249baf5b18edca8e8dcca6bcb4670545da38dad9e0cfd788316488

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8f72768ba0a3247b785a506becf785412e7a0dba5d5fc6180daa92d41274beff
MD5 1fea3271697433cc5d806f7cc9818a94
BLAKE2b-256 3757e64bc50431363ca97e3927ee3cd7fbd78dfb8182149f0d4092e1e496c082

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: netfog-0.1.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for netfog-0.1.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 10916e29522d22dd2f492810c851135d211d05c2e030765f0d26192ed65f6f3b
MD5 9ccc40c857c5734dfadeaed02a996d4b
BLAKE2b-256 693b1e4056ea3827e116d7da20a7f818d2f0c40d99e2c4e817e1f6c7a83222d3

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2b2f843e396644774b4df1a4a1db1585120a4d0b09ee6436411e368b2b601a45
MD5 173815d935d44153945ef3119086ed05
BLAKE2b-256 3128cbb0ced6b1bbad8983543537175296b00138a066c90a952665b26f84fb6d

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2af23efdd928bb0ee7fc51f854d42b9a7877ef85888088ac2d247ec7a730e748
MD5 ae2a3b0a7407c8b468304cb700bb7000
BLAKE2b-256 a22faa740c3f42007b036335c387fa6fde6599640ab7bb461d58313fb5821b23

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fbe27fc714c4caa87b86b471c5f4ab5d5e9c8707e5fc8c2c6b67554673652ecb
MD5 38cfb175cb9740061579ca14c6e61145
BLAKE2b-256 0c11c2a97a0280180b31a75ed8388d331e3c2b79bc64bec48f43d82c5cf6a047

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: netfog-0.1.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for netfog-0.1.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3c101c02dd5a6d08cda93f05812e5e43acc9ccac7f9112acf1b18b269c0a20ec
MD5 cbadd9e6bb8daf7c11730a071b51c534
BLAKE2b-256 1fd159afdc4acd80bf936290196c39475d4d24440f03b17f2453410985545c24

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c8cb506a63bca518b3ea3deb54128fdc735d9a56636cbf0308482a9b94f7a92f
MD5 b11c26f667dfe8f4c477296cdcce004a
BLAKE2b-256 10113e2d65fa50f78bb3a0fe786145d8071d3da5caee9d2bc6c3b992695e951e

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b76abff169f5cb15d9bf1e7184de273724f310903d9333cce9a88ae80a4ff274
MD5 f49b3ee6b15a55c0c6b73ba405773e4a
BLAKE2b-256 00ff64f41171ce3ed0eec4933557fe944480a42b423864b6c22db63471e6dc6b

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2aa2cfd0f720b7410d45844b151bdfdccb5d46a2d36f98754fe376876a757114
MD5 683c650709f47c556041c785d0c3a790
BLAKE2b-256 d86a69700690886606c9905be646f535f90d323b1182957a788b1aa35017fe4f

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 405781811663519f8799038002185db0a9caa5098de63494c23d7bf7b66cc0e9
MD5 7761f7a98c1492c056242565828d83d6
BLAKE2b-256 314bc07bb2799bc0773e391d2cb4c4870df6a10f132675d70bb742c1f0498ee5

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: netfog-0.1.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for netfog-0.1.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d0d2f6619b22d682be6d156493c612638eee52da9e4eec3754c5817554499401
MD5 6eecf6dfaf81f369372ea9003ac4adea
BLAKE2b-256 312b4e31432ffb3e9e8857999824d257065ff7a1148662cb623797e6c5163d8c

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 40c851f296f7485f8b0cd8870441ddc641f5209124db215f55494d321a7b6385
MD5 1ba842b5f4028a925c7805310b4c0f83
BLAKE2b-256 24cb4cfe28b78596122298671d7982036071cc07497439260fce1bbe330bfd24

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4f27ede4ae3105c0eb3e5c9e302ed6a6033040ecd018079adc06f207ff669236
MD5 bcbaf4a8ff5157cb9fb0bf05a257c6b0
BLAKE2b-256 cc843931e698ad67dfdfc5b28668cc2e0263a24f7ce5c275d994344ca014bae5

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcfb4f3800dd73e2f07e23bb73cdb3aff7760598a8a2066aa611c54609a3cb05
MD5 0db6f0f881337b460f17de0caee45577
BLAKE2b-256 40969b8a337983a90fef12c9447b11a93a71a1c8d05b713ba246d5103aceef04

See more details on using hashes here.

File details

Details for the file netfog-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for netfog-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a804a7ec83572adccaa85099852638160616c1463edf228c907e2a5bcda406d5
MD5 0bf3a6748718e9db8569c680ceb8b0c9
BLAKE2b-256 eb18b32f66e508ab2704df7021fe70827eef41f642fbf47a108889585fdc86f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page