Closed tomas-wood closed 5 years ago
Same person, different account.
So I used r.type('random')
to see what kind of value is stored in redis since it's obviously not a string and I see the data type graphdata
. I'm not seeing any methods in redis-py about how to return graphdata
from redis.
I asked a question about it on stack overflow. Any help would be greatly appreciated.
@odellus see my reply at stackoverflow
Sounds good. Making the alias/index of the nodes stored in the graph accessible via query in this case could help with reconstructing the original graph. As it stands now I can't think of another way of reconstructing the graph if I don't assign nodes an redundant index as a property.
I think a NetworkX-like interface to saved graphs would be helpful. I'm working on a adjacency_matrix(redis_graph)
function to return a sp.csc_matrix
right now so the demand is there.
But this answers my question.
Closing.
Hey folks,
I was wondering if anyone could point me to an example of how to load the graph stored in redis from a previous session into a new
Graph
?I can see the name of the graph in redis but I can't retrieve it with
r.get()
and I'd really like to be able to use the saved graph for new instances through the python API.