Skip to content

karthikjoshi/redis_graph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Python graph database implemented on top of Redis

Requires:

You can also quick install it from PyPi:

  • $ sudo easy_install redis_wrap
  • $ sudo easy_install redis_graph

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'

About

Python graph database implemented on top of Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published