Interested to know if there are any plans to link graph-tool with a graph database e.g. via the Tinkerpop <http://www.tinkerpop.com/>stack of technology or pyBlueprints <https://github.com/escalant3/pyblueprints>? I would be great to be able to run the algorithms within graph-tool on data from a graph database (such as neo4j) without having to have a static GraphML representation of the data -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 05/13/2014 10:06 AM, blu-elephant wrote:
Interested to know if there are any plans to link graph-tool with a graph database e.g. via the Tinkerpop <http://www.tinkerpop.com/>stack of technology or pyBlueprints <https://github.com/escalant3/pyblueprints>?
I would be great to be able to run the algorithms within graph-tool on data from a graph database (such as neo4j) without having to have a static GraphML representation of the data
Since Tinkerpop and pyBlueprints have their own graph data structure, there is no other way than to convert it to graph-tool's format. There are no plans to make the connection tighter, since this would involve major rewrites. However you can do better than writing it to a file by simply writing a converter in Python. All you need to do is iterate through the edges and vertices and add them to a new graph-tool graph, and vice versa. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Great response, thanks for the swift answer. I'm sure I'll have more questions. Keep up the great work On 14 May 2014 16:58, "Tiago de Paula Peixoto" <tiago@skewed.de> wrote:
On 05/13/2014 10:06 AM, blu-elephant wrote:
Interested to know if there are any plans to link graph-tool with a graph database e.g. via the Tinkerpop <http://www.tinkerpop.com/>stack of technology or pyBlueprints <https://github.com/escalant3/pyblueprints>?
I would be great to be able to run the algorithms within graph-tool on data from a graph database (such as neo4j) without having to have a static GraphML representation of the data
Since Tinkerpop and pyBlueprints have their own graph data structure, there is no other way than to convert it to graph-tool's format. There are no plans to make the connection tighter, since this would involve major rewrites.
However you can do better than writing it to a file by simply writing a converter in Python. All you need to do is iterate through the edges and vertices and add them to a new graph-tool graph, and vice versa.
Best, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de> _______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
participants (3)
-
blu-elephant -
Louis Holford -
Tiago de Paula Peixoto