skip to navigation
skip to content

Not Logged In

redis_graph 1.0

Python graph database implemented on top of Redis.

redis_graph

redis_graph implements a graph database on top of Redis.

Requires:

Related:

Examples

Example of creating edges between nodes:

from redis_graph import *

add_edge(from_node='frodo', to_node='gandalf')

assert has_edge(from_node='frodo',
                to_node='gandalf') == True

assert list(neighbors('frodo')) == ['gandalf']

delete_edge(from_node='frodo',
            to_node='gandalf')

assert has_edge(from_node='frodo',
                to_node='gandalf') == False

Example of node and edge values:

from redis_graph import *

set_node_value('frodo', '1')
assert get_node_value('frodo') == '1'

set_edge_value('frodo_baggins', '2')
assert get_edge_value('frodo_baggins') == '2'

Copyright: 2010 by amix License: BSD.

 
File Type Py Version Uploaded on Size
redis_graph-1.0-py2.6.egg (md5) Python Egg 2.6 2010-12-01 3KB
redis_graph-1.0.tar.gz (md5) Source 2010-12-01 2KB
  • Downloads (All Versions):
  • 14 downloads in the last day
  • 38 downloads in the last week
  • 258 downloads in the last month