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, baseado em uma palavra-chave, com mínimo de intensidade 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 = 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 = 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.2-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.14macOS 10.12+ x86-64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

netfog-0.1.2-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.2-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for netfog-0.1.2-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0396ecd99af5f6f4975a765369429c398d6c3863f7c20d9fea55778626264f10
MD5 d50fbdbaaee93a7606eba4769656aa77
BLAKE2b-256 6abff8f5e36baf2c7f3e2ac19805ebed5297c0e13c3868c29418d54468afacf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2d8c7f5f0ed188f189a14fbff5d5d399bdfc037c0833d517cea51db63031a576
MD5 9946579182f7ef3f5d6c1d3d81e97368
BLAKE2b-256 d725693b300567e8c73df8f27dee52466df19e97a52d778ee2984f2a92f49258

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.2-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.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 907b904c1587d09a79008675be3651f66809503cd56ea9710d0385bf12397957
MD5 7efd96b0306bd9209c191fd96efeed22
BLAKE2b-256 71175a48569c319173b7eaa19cec794732ebc4a12f52b0871419a001bd08dfb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d2d70d7a9804ea78803f111f3d8d39107cec4fbd483cd5e92442fc11d192c7d1
MD5 5eb01e6c3589fd098295a375492c2a03
BLAKE2b-256 8ba45149815d32c89509a27628edfa4e5d36ce2758bfce891fedb8a04c56e6c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1049c6dea82ded18a291abb706e217c5d89fc67b3e94f377961f439d10a331fb
MD5 2975403a04f296893b868593c734f475
BLAKE2b-256 7e83e394235205b82282af21b33cb2630a7bf833ed79acfe1524f323ea4a349e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1912fa9fc8d86573cd09aa1e90259766962d00ea31b74c96dd4b8a94e80bf416
MD5 c281d8ac23d21c59ff7c52d5bde31703
BLAKE2b-256 d06f8a758522aab2516b3173836e189949a434c72a7778a27c56b77782f1d760

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bff84f05262c3400650cb5ace125ffeb291a6f4002d4bada2091052e5243dde5
MD5 59c1a5b64eb7f928d5d4c412b547a80b
BLAKE2b-256 54c9e4407fd263fa439ef2d47327ae751d3857e76dc632fd53e5dc4921b2e3cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.2-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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b6cc674727d4e4b9c740d64677d8c6431b9577892c72d90d81bf235bf4fe0637
MD5 08737868a4681207731b20c843f88d8e
BLAKE2b-256 7d6f79b207cde35c11fe17b372ad45cc0630b4d46041760eec4e0874c3a1b674

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2dcea76ffa18b66074689bf2b28c7a791ec2ee3f92c7bb57cc5f3a9ffda0c17d
MD5 6600137908b8719bc9ebb7be24c2876f
BLAKE2b-256 741eca452d1f801000e9ca3c7ed1bc1496e27cf27d716ad3e28b9b26c448a8d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a9103c327babb2122551417d9fe05d4885f67be66be9e0474d522cad2fc7fcf
MD5 5c39090830f986ea6c7ee467b0c05a16
BLAKE2b-256 4a41da47af80a6c4e6af20ef3a812475ff57472ecfe2afd2ffbe7a3dafc72ec8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4af8df9ffa7520605e0bc912b2f7eb2244c4c148fd8d3285d7993248844036b2
MD5 9ae57d7298bb01b9578e3a9d0b6d066f
BLAKE2b-256 d6f696a60af4c6a25e8ef5959081927a284750d76518a8b0d043a2bd32de586e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.2-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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3d33ab3cab676f9a5aa6ad123fb400a9327ea5bd6df3d7f1b353a2b8d34ae95a
MD5 558b8b1fd9c398bfc9979894cce72c6b
BLAKE2b-256 6d36912f8462ddb1d652a2ccd07596990d38041df03044d6a899db0542ec7ace

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0beadc9210ea731e3f2e7455c7ddb7b0658080cc5640e414544cde6c23b0eb13
MD5 2cc8e71e1e6aaab3eb267dcf4e4a585f
BLAKE2b-256 8960b874432724ced32bb17f0a76b49bf8e7d7871663d9e19346e56221d376b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c383abd407d91f27698b6edabfe681b6a3c21cc12e5cf693c017936e39131a71
MD5 7a5ef0c8883ba82358ee3c13134c227d
BLAKE2b-256 83fb26c816bb66fbebe311f8c9594703016a7e9bd591551550399773c46efa9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f2b9492bb42652638f3a594aec8f7b480cc80a7ffb638a54ea09b648b618b99
MD5 5145c71242d36576438d70d739c37c51
BLAKE2b-256 c0bdacc6d83a3671d6d3031ec7fbef874d70157096fc56a82fbd24b902a901f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b034ef0d5826b18affc309ae287799a5f84accb0499e61b6d457e8e13ef03a85
MD5 997ebef0ad4a4ded9abfbf28706afdc9
BLAKE2b-256 65a3f2b471b9f0c992216ef9b28f96e47de9813359f21abf97e7fd53c9dbca3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netfog-0.1.2-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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1840adcfa0bc07f76d7802515903f7ef581f69f53f2b5a4a8c2255494971cb66
MD5 a567a4e4f4a3019a2e67ce27a9f390df
BLAKE2b-256 43ff8a62b6361364ce14b69a1898ca7b304c191b00897df38dfee21c6ea0f59b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 071997bb294bac544f4c3e4654ec9c4e53ee501bdfbb4204d4f32a03f86c0c9d
MD5 b367553345a41b3f09f6c953093140b9
BLAKE2b-256 c3eef5bc92082b0a55a1e79f4c110dbd8f38a380eb08f6423f307396efedcc61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f076e4b0dde1371b1f6b5bed9df95bd2c8139fcf6f5e9a3e8746948325b15311
MD5 591b9698fd7c83aff232e421fade62db
BLAKE2b-256 97775f35e4e6cb5a81571cffbdb09783904ccd0f858c0a74cb65543593476e4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0300dc527c015ef0301bf9ab17885661f6e30446f17ebac171ec8e1763a8e5f7
MD5 d5c8debd83b870229e293b05037e8227
BLAKE2b-256 a8d3491b0f3fc0adf9227ccaa300ed8532b88934c9b598f4235e8c656c733736

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netfog-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f872c841552234a389adf0e784adcbe0eab96dfc541ad8cd3e7595cccedf3d2e
MD5 078e836fdf29ff13ab1f864041f39eb1
BLAKE2b-256 76bd53e061684e2c86c5914343a9ba686a58d57aa3ea756f2cf8313f963e86da

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