Skip to main content

NebulaGraph NetowrkX adaptor

Project description

NebulaGraph NetworkX Adaptor(ng_nx)

Manipulation of graphs in NebulaGraph using the NetworkX API.

License PyPI version pdm-managed


Documentation: https://github.com/wey-gu/nebulagraph-nx#documentation

Source Code: https://github.com/wey-gu/nebulagraph-nx


NebulaGraph NetworkX (ng_nx) is a tool that allows you to use the NetworkX API for manipulating graphs in NebulaGraph. It makes it easy to analyze and manipulate graphs using NebulaGraph's advanced capabilities while still using the familiar NetworkX interface. In short, ng_nx bridges the gap between NebulaGraph and NetworkX.

Quick Start

Install

pip install ng_nx

Run Pagerank on NebulaGraph

from ng_nx import NebulaReader
from ng_nx.utils import NebulaGraphConfig

import networkx as nx

config = NebulaGraphConfig()

reader = NebulaReader(
    space="basketballplayer",
    edges=["follow", "serve"],
    properties=[["degree"], ["start_year", "end_year"]],
    nebula_config=config, limit=10000)

g = reader.read()

pr = nx.pagerank(
    g, alpha=0.85,
    max_iter=100,
    tol=1e-06,
    weight='degree')

Documentation

API Reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ng-nx-0.1.6.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

ng_nx-0.1.6-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file ng-nx-0.1.6.tar.gz.

File metadata

  • Download URL: ng-nx-0.1.6.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.4.9 CPython/3.11.2

File hashes

Hashes for ng-nx-0.1.6.tar.gz
Algorithm Hash digest
SHA256 5a33e48124a98542eb0068d40182cbafafb2449080d7a1665d1c93dea387ff01
MD5 091b6903a5481eed7b3c1c9edd859eac
BLAKE2b-256 95f675c1170a5ff6d49b34ef32831954cd2ed7299be4a7f11eafe4b6f5c889d9

See more details on using hashes here.

File details

Details for the file ng_nx-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ng_nx-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.4.9 CPython/3.11.2

File hashes

Hashes for ng_nx-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6ca8460500bc9863cc44862d8d38ce0910f009f320f494cf9ce9b8c645eea845
MD5 d45844e8cfb5f0b93f98be45cdf0ec2a
BLAKE2b-256 eaef577faa8dc05d28f9a1831b0e9d58e061b4b8e186266578b1cf10c5f371f1

See more details on using hashes here.

Supported by

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