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.4-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.14macOS 10.12+ x86-64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

netfog-0.1.4-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.4-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.4-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 78be0f5cc130438eea753f0f98d17aba059e901c261e085b5329447b6f2e5892
MD5 5607226e7e160c09a0fa1069024227ba
BLAKE2b-256 507240c9b2351dde8cd933e44f2ab6151c44b955087358246e7ea097de3329c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f16c6c6e40321a44bc603a9cbd9ddd200829677fe023a48f028a29cb97cc8ae0
MD5 1bd560be3a1f5b124d13eda806e1bc0c
BLAKE2b-256 882235dc33c54c217e18117071f53620bee84a0e37d1188141a98cf92f326a4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.4-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.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5a6b9191d07d1be629257c694f32a7b39418af3965636809c6d1177736603d6b
MD5 b2feb4eaf49bddeeaa09e8da8d6877c7
BLAKE2b-256 ee3976648bcec52f27097bfcc819e0cf496daa1165b87123893a636f840218ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9567fe6622f3de1ec7e8138a46050a089579e382ebb46dfe4335682a9dae403c
MD5 52ccdbd834894edb44eda69e79632a72
BLAKE2b-256 a1f09e4549e8e162875f2ae890f7172d8846e37707c9c833714099f943e533a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 245b23158a6861907797f6d5c64897719096a7cd87afd7701d2ee36fd146bbc4
MD5 01e508f077b19a8376db4b932cfcc9b6
BLAKE2b-256 6d656ac0b25995fb27ad49efc94e109b2b5b85856941ef471c37c9765513e15b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 313ee64d311be4d92774ff89724795b844d5b8ea2f42b01d22a283f6e722dc1c
MD5 8edb3de017cda3f2cf2b07ba74c0aaf1
BLAKE2b-256 641d9b09fe3a30cdcd3d136c0fc550f620347d343af55f40eb92f7d0dc150a71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3e3bb5c72d32aa8c0da89947d2f062a6313726df7db66232f1071705bbc4ceee
MD5 448c48a6489fa907e091f1cb1abdef11
BLAKE2b-256 2fe27199d990a03787b7fb967b1a421ef79a4d6dae96bdb880ac6a93ee90ed5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.4-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.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 621e2d1f233bb58984323cf64fecbf31bc477dc3f7cb387d1621a90c81d04af6
MD5 0e6515a621722e4f53f94c6987ce8608
BLAKE2b-256 c5ea4b7313a35af3336ca8aa2f728df82282ab5133903ab972b5cf06f7be4946

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f2690ea6da5506903e6a7e1396274133dd647db56157dcc903713e70eedb4ebd
MD5 4f8341e884226e96e89cb04a5202b854
BLAKE2b-256 3cd13c55ef5feed9155450d488792632887624cb395b70c4d1049e574beb2d84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59ee4f5494cb85c9af3457303738bb3084dba80f50671e312157a668549d2cb5
MD5 1809415965f8a903631dd852f734d7bb
BLAKE2b-256 f717783454535751d50c469ede5a43544b739d17c4746321c6b0ab100e24ef47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e6397f3648d674bf1511db34ea693e3d350d7cba1774c917a799c9c2642fb6e7
MD5 ed5f2ee3b393984511644895b1a5ce30
BLAKE2b-256 e479eb5a87caf7a7a87086fec414e0f9d3eba33dd404150aec486bf7895ed269

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.4-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.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f43918b57e535dcb23f8447feef9c27bec6a4735cf05220c0e8a2a1ab2b777cd
MD5 17b0e169edb965bcc1597b84fb7204cd
BLAKE2b-256 515df7970f04000bd829a1d08a417af90631bb77a1ffd5a6a01e0d2bc2025235

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7b4802562898628b869a73057c409bcf56f5407cb2c11a05ce135e6f3a35be61
MD5 27d8ad87b8c28460179e19784e18b219
BLAKE2b-256 20e725aa7d66e109471d0d0c38cfcca6a3426be341e263d2749d725716b19472

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 aceb1ab65e3eb56a115614a42c05025ade185958fa5724f644cbe7a6f4e39494
MD5 80cc35395aa71fa0dee5d558d60886b2
BLAKE2b-256 98afa007c266c65ceec7ae001c290dfd067e55a8d707abbaeee4ff01cc7896ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d478f1fe169fcafb9810a07d673666acf9012f729ab49723d6fe6d32bbef291
MD5 5354ea1b16f789f91a4c79ffcf97ac1f
BLAKE2b-256 84a48d82d223afea0162a58c46ed7ae2eee179314e9e8fbdbb882b1a54e5abfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aea02afb3f16cfc06f65e6e2aab4e5e936766a359a219205edf5d2d13cb7a32b
MD5 3da917927aba3f6709a564eb0aab3fd4
BLAKE2b-256 9316e40d13c80f42a7d1d34dc5a706486a4654805ab8180b3ec84556ab9c27a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.4-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.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a6ab7963ebf62e94d1406978f1d4e65d3b859eb44a3e492eb2a5fcace6d5df68
MD5 ee88721d2736c90948cc65ef505338a0
BLAKE2b-256 2d31128b3192694d357ce26b0eeece8731f3617e6e608295e7aa399fc7b28b31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a5c4278a62e6334139f6a5ba5ffb1fe6b3b76c363efdef22ac5367aa2a35af9f
MD5 59f6c690976c92f08832556c3bda1ead
BLAKE2b-256 a96c519eb0e96b57ec567a74fc2bcaaaf1e25c1d7709b81d44b1875af379ff3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3bdc365c43752a2ea6d3e1513f7f73402907c0d69799a28643340cddc1e92d40
MD5 6a45d244dca8d0adcd44fa01f57957ee
BLAKE2b-256 01343bfa6d9bda56daba6b0c31e5a90ea83cb0c907edeaae9f44a4f82363c49d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccef7ad16c6b6cf13a5a00ac24b82985023ea9813604454d50b974209588eff6
MD5 5b2fe64203781eed23297ada3af835d9
BLAKE2b-256 ec850f1944c23a0ced1851eefd84d59c933146349127fdb275247fd5e0d486f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9c73bfddd3e7bff8a11d31b5ff86adcd1f50127da03a587c30ebd342f024ceda
MD5 f90979cfb4545e762314e21485aca8d6
BLAKE2b-256 236aa7261e3c88f4a719243b040fee1e547112d517c806fe543d9989b66d12ac

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