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,
    search="Bibliometrics",
    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,
    author="Jesus Mena-Chalco",
    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,
    author="Jesus Mena-Chalco",
    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.3-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

netfog-0.1.3-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.3-cp314-cp314-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.14Windows x86-64

netfog-0.1.3-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.3-cp314-cp314-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.14macOS 10.12+ x86-64

netfog-0.1.3-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.3-cp313-cp313-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.13Windows x86-64

netfog-0.1.3-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.3-cp313-cp313-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

netfog-0.1.3-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.3-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.3-cp312-cp312-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

netfog-0.1.3-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.3-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.3-cp311-cp311-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

netfog-0.1.3-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.3-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.3-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3bc45c94f521a4d21fb2cae28f611f897ac63fca51a763fbac5622341906fe30
MD5 580a8b12e4eb075483838671000bbbee
BLAKE2b-256 611dab8424d1b85504a0098025b9706541b7074c744bc4f5bc2acc9883e76f01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5778af61d02a0aa105c079db7bb2da58889b81d0baa33003c37a8852add12001
MD5 ad5c48e5d2fbc8f5512d9c7316a8c59f
BLAKE2b-256 3dbc216b7a03d2970f8be9fd4800f3778e10d9399737ed95321d9a3489c10626

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.3-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.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 6dbd0e219bdfe07d61950889b43af68be224ec8e7c7a711f6ae14ef63dc24bf7
MD5 5e66d2d5ec693e89e3f1516a46f24df5
BLAKE2b-256 5f52586f6c792adf0a84df2d2e81b4b7f8cc70ab9c0d851ab063db0a1ec05222

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6120254df8559538a586d37688e616847f126ec336ae838912e56648887254e6
MD5 fc1412f4616942dcb692e2030dbccf06
BLAKE2b-256 8c742b158c7bd605cfeb261660ea682e1dcd0c610fe4b3cf9d188260c5bac8f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c39dbbad65356be48fa565ba6dc6c8c5e1dbecce2db7bc99c15adbc09c6e8d0
MD5 daa9fb817238ca1ceeef4e193f6458ad
BLAKE2b-256 9aac08f42d9fb85c7d20a9fcb7a11637353d050799c058ad43d90b30dea43a3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 19f6280d433ad0f8f29f43f2755d44c4bb15d2290a24a8b3d032ce7c21ed1432
MD5 7689b1e6ffca1c2eb6981540eb3356f3
BLAKE2b-256 79b2effa6bafeeb98619e013ee58c547bd0ae127dc11c5a492ace91fb41afa8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 852a48d0ce45b29ecccbf6fbcbd454e92348fc63503cf81468e1d9b47ac71459
MD5 74682535c5b6860526565e818b11c3b8
BLAKE2b-256 498ebafe710debceab500ca8aef0e47294d7fb31072d5595bce62a9db7f6a65f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.3-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.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fd7e58da92b2a791a1d720e99991260a4a0928ac39c85a130ffbd2cdad48131b
MD5 7b6b2834ed5132a0177d766897eef40f
BLAKE2b-256 b40d1ca4b5d1dfeddc0ed8d6ef80bf2dcc5a385f734c4e973fd608a1fdbf601c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a87f44753680498fc03302e9f573220d2d1979efe12d30df9149baa75852c235
MD5 8859647ecf26c67666e49efc7390db42
BLAKE2b-256 34a7e1c42c233b22a45cd6eee78ae6356f75810550e037400c652aa37b5f10b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 955bffe34c0be7029fdd2590764e6e01b8232458ae5765d241f39d39e1f4f9c5
MD5 c5ed430aaf2acf2f1335ce6825add08e
BLAKE2b-256 c47e2b36b407f7639344cdb0d1468e7db4e8260af1d68facd65da0bab8aaba6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b29e65850824920a17d3acde532ca1b6fc19617af977b060d4e0fc0ac7db93c6
MD5 7aaaa0323a2a57d7fc779eb637a931ec
BLAKE2b-256 f6f12eaeffdff9bee42a9de7bbee873c3d968a17dbffda00fb527a63fb424c84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.3-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.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ccd90bef2d02da3e979de74fff10422b9ed8934c4e5a441d7edced582eccc3ae
MD5 209525ddea4a8b4ed628a31338c08b55
BLAKE2b-256 a2edf4cead46080f591597800899b3004f4ec7885ff19c829b92dbacb6b2220b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 56cec57ce093476ed00fdff701be1a1c5573af59dd488d4a67b050e4f4a64f4c
MD5 298fe678fae5dcc2f7c5108dee5cbe6a
BLAKE2b-256 e9eb724e47f787aebe4cc5969a90c0839c79bd00510f54711b01d2ff5d0ce759

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a0eca2c946e6045538300c44f0cbc59a921d1b5bc24d8b3c61244845e4e0cd51
MD5 a6099bf98840f914ed97c94a3a15c7a8
BLAKE2b-256 58b0ff8ca7a65c7fbf92e929064afb30d42c5be4362858625c79f9c117a6f015

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d9afae57309a5405b1a025fedb380c7e71142446a3b680ce6d9384e2599be97
MD5 8dd0afbcbd93d5dc8ebf848c394d5e15
BLAKE2b-256 e311a06fee9e381359a9b6a24fa1a8a2a982c3a80aeda5fe003ce13b6c0c17ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3935bf092239429bcdee90bdc61155bed38018c7bd5e899c78f269351bdcfe7c
MD5 debb5b11c9bfbfd2e227bc71053f78f9
BLAKE2b-256 736008ce7e66bc0a980ddbb0637dec6b5c44756dbc8789db34ebcd7e6cfc875d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.3-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.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7e6b91517995e8301b3d90ab23aff138fae124673fc0eab60c309a6e3db8827f
MD5 91f2da51dd3d85631e6ef07a64eb355a
BLAKE2b-256 77c5344f0e1157aada9df9cf67479b2d9ad3d9647c657be5e81a21ec7ec91851

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60b6613700e5004ea7fcb96aa3fccf91788146ef5c0b1689c3a4e8ec1151d3de
MD5 2f21f8ae99b95466847d3acdb5468e8b
BLAKE2b-256 fdfd06dfdc3828709efc7c48bd7efb955873927cd588710dbf0195e09d54b62e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3ce4524fd8292f390b4814fa5c3b7c2da253a3ca2ee5faf7a9e777f1b951154c
MD5 dfa965f1039820533beb607dff430599
BLAKE2b-256 105e217336f55aa74511155956a644c3ce0912e79d6385e479bbab6d19705e76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 874394fbe9e60b9bc412c1f1bc85367fe1bc2f5439875fa41e415663d30bb0ab
MD5 87446a3fa5b4853b9ae58c02b0850429
BLAKE2b-256 df6897b6b0054e18f27569a92aeb041b8c53671a77969f970e2589e478701d89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e6b31921d33953e32d4b57af029523a938f0ac7f0b12cfde58bfbed08783d4d6
MD5 581d29ff210f911bc4267792df2afd0c
BLAKE2b-256 2b3df0e96e004448b9eb98733fb2e8cd66e653330eb97d11739bbe469d1b7570

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