Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
123 views

Path Compression Algorithm in C#

Let's consider a simple graph represented by the following edges, where true indicates a visible node and false indicates a non-visible node: ...
Shahar Shokrani's user avatar
5 votes
0 answers
187 views

Assembling and traversing a graph, given a list of items and parent pointers

I've written a function which takes input such as this: ...
Tomáš Hübelbauer's user avatar
5 votes
2 answers
13k views

Constraint Programming: Map color problem

I've written some python code to solve the map coloring problem. In my code, I represent the problem using Territory and MapColor...
rookie's user avatar
  • 1,233
1 vote
1 answer
2k views

Finding strongly connected components of directed graph, kosaraju

Given a graph in [[sourcevertex,targetvertex],...] format with all the directed edges of the graph I am trying to optimize the code here because it still hasn't ...
fa1c0n3r's user avatar
  • 111