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, NebulaGraphConfig
from networkx import nx

config = NebulaGraphConfig()

reader = NebulaReader(
    space="basketballplayer",
    edges=["follow"],
    properties=[["degree"]],
    nebula_config=config, limit=100)

g = reader.read()

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

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.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

ng_nx-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ng-nx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 841c260a419854e8abbda0f2fadfae3188a86965f693bf8a93c64e7576e70d06
MD5 bc3853b7e82988cd837ca4e76ae10b30
BLAKE2b-256 4d82d7a1d94a4f5c69108683ae86d6bcdb8f8625543fe1b9376f5e27013ac019

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ng_nx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17c0ae4a683d3ebf4f08a6f0aceba3bd20a97a44757889e3c1aef654ebdc5cc8
MD5 c79f56a6a596a04aa93c40a0494f1048
BLAKE2b-256 be681e6d43e092cf9e9b509f6db748b7d969f634e433a8a437a6aec745569d47

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