NebulaGraph NetowrkX adaptor
Project description
Manipulation of graphs in NebulaGraph using the NetworkX API.
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"],
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
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(9.0 kB
view hashes)
Built Distribution
ng_nx-0.1.2-py3-none-any.whl
(9.2 kB
view hashes)