I am very new to python coding, and I am looking for an algorithm that would quickly find all the paths between the beginning of a node and the end node for a very large graph - say, a graph that has about 1000 nodes and 10,000 edges. The number of paths that really exist from the beginning of a node to the end of a node is small - ten or fewer. To help contextualize the issue a little more, consider a social network. If I had 1000 friends and wanted to know how many ways my high school best friend connects to my college roommate, I donβt care about the fact that my high school best friend is connected to all 200 my friends in high school because these paths never lead to my roommate. What I want to do with this python code quickly multiplies the paths that exist between my two friends, and essentially get rid of all the βnoiseβ that exists around these two nodes.
I tried to implement a series of code examples, all of which work well on small simple graphs. However, when I try to include them in my large graph analysis, they are all too long to be useful.
Do you have any suggestions on research methods (i.e. something already created in networkx or even information on using the stack against recursion, etc.), code examples for implementation or even other routes outside of python to pursue ? Keep in mind, I'm new to python.
python graph nodes
Garen pledge
source share