How to use networkx algorithm with my custom graph datastructure?

amirouche

I have a graph database with a Gremlin query engine. I don't want to change that API. The point of the library is to be able to study graphs that can not fully stay in memory and maximize speed by not falling back to virtual memory.

The query engine is lazy, it will not fetch an edge or vertex until required or requested by the user. Otherwise it only use indices to traverse the graph.

Networkx has another API. What can I do to re-use networkx graph algorithm implementations with my graph?

Back2Basics

You are talking about extending your Graph API.

  • Hopefully the code translates from one implementation to another in which case copy-paste'ing from the algorithms section might work for you. (check the licenses first)
  • If you want to use existing code going forward you could make a middle layer or adapter class to help out with this.
  • If the source code doesn't line up then NetworkX has copious notes about the algorithms used and the underpinning mathematics at the bottom of the help pages and the code itself.

For the future: Maybe you could make it open source and get some traction with others who see the traversal engine as a good piece of engineering. In which case you would have help in maintaining/extending your work. Good Luck.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Can I use the HITS Link Analysis Algorithm in NetworkX Python Library on a undirected weighted graph?

From Dev

Node value in graph datastructure

From Dev

algorithm python datastructure

From Dev

How to graph nodes on a grid in networkx

From Dev

Which python datastructure to use

From Dev

How can I use DFS algorithm for an implicit graph?

From Dev

How to show cycles in networkx graph drawing

From Dev

How to monitor status of networkx graph creation?

From Dev

How to store a networkx graph for visualizing in Gephi?

From Dev

How to add labels to nodes in a graph in networkx?

From Dev

how to force magento to use my custom price

From Dev

How to use the dot command (.) in my custom command?

From Dev

Datastructure for undirected graph edges with constant time complexity

From Dev

How do I use my new custom view in my ListView?

From Dev

How to use my custom minimize/close window buttons in my QMainWindow?

From Dev

How do I correctly build my graph for the Hopcroft Karp Maximal Matching Algorithm in the current generic scenario given?

From Dev

How a linear datastructure can be used to implement a non linear datastructure

From Java

networkx: how to set custom cost function?

From Dev

Override only operator*() of iterator of a custom datastructure

From Dev

how to use Dinic's algorithm to find min-cut edges in undireted graph?

From Dev

how to use Dinic's algorithm to find min-cut edges in undireted graph?

From Dev

Arangodb custom filter/visitor for my tree graph

From Dev

Add GraphStream graph into my custom jPanel

From Dev

How do I get the giant component of a NetworkX graph?

From Java

How to remove float('nan') node from a graph in networkx?

From Dev

How to convert a Networkx Graph into an igraph object (from python to R)

From Dev

NetworkX DiGraph() to Graph() with edge weights not summed, how to sum weights?

From Dev

How to determine specific color and size of chosen nodes in Networkx graph plot

From Dev

How to find path with highest sum in a weighted networkx graph?

Related Related

  1. 1

    Can I use the HITS Link Analysis Algorithm in NetworkX Python Library on a undirected weighted graph?

  2. 2

    Node value in graph datastructure

  3. 3

    algorithm python datastructure

  4. 4

    How to graph nodes on a grid in networkx

  5. 5

    Which python datastructure to use

  6. 6

    How can I use DFS algorithm for an implicit graph?

  7. 7

    How to show cycles in networkx graph drawing

  8. 8

    How to monitor status of networkx graph creation?

  9. 9

    How to store a networkx graph for visualizing in Gephi?

  10. 10

    How to add labels to nodes in a graph in networkx?

  11. 11

    how to force magento to use my custom price

  12. 12

    How to use the dot command (.) in my custom command?

  13. 13

    Datastructure for undirected graph edges with constant time complexity

  14. 14

    How do I use my new custom view in my ListView?

  15. 15

    How to use my custom minimize/close window buttons in my QMainWindow?

  16. 16

    How do I correctly build my graph for the Hopcroft Karp Maximal Matching Algorithm in the current generic scenario given?

  17. 17

    How a linear datastructure can be used to implement a non linear datastructure

  18. 18

    networkx: how to set custom cost function?

  19. 19

    Override only operator*() of iterator of a custom datastructure

  20. 20

    how to use Dinic's algorithm to find min-cut edges in undireted graph?

  21. 21

    how to use Dinic's algorithm to find min-cut edges in undireted graph?

  22. 22

    Arangodb custom filter/visitor for my tree graph

  23. 23

    Add GraphStream graph into my custom jPanel

  24. 24

    How do I get the giant component of a NetworkX graph?

  25. 25

    How to remove float('nan') node from a graph in networkx?

  26. 26

    How to convert a Networkx Graph into an igraph object (from python to R)

  27. 27

    NetworkX DiGraph() to Graph() with edge weights not summed, how to sum weights?

  28. 28

    How to determine specific color and size of chosen nodes in Networkx graph plot

  29. 29

    How to find path with highest sum in a weighted networkx graph?

HotTag

Archive