|
|
|
|
|
by beagle3
4254 days ago
|
|
If you are really interested, http://nsl.com/ is a treasure trove - quite a few of the examples are extremely well documented, some or not, but there's a wealth of information there. Specifically about graphs, you can look at: http://nsl.com/papers/order.htm - topological sorting http://nsl.com/k/tarjan.q - strongly connected components http://nsl.com/k/loop.q - find loops in graphs I think in all of these the graph is represented either as a list of edges or a dictionary of node->(list of nodes that it has edges to) |
|