Skip to main content

Questions tagged [graphs]

Filter by
Sorted by
Tagged with
7 votes
3 answers
2k views

I want to implement a power-system like the redstone system in minecraft. I have n power sources and m cables. If I disconnect the power source or a cable the circuit should turn off. How do I avoid ...
Benedikt S. Vogler's user avatar
1 vote
2 answers
4k views

I am working on A* pathfinding in Unity, using C#. I am implementing Dijkstra's shortest path algorithm. I have a Dictionary with nodes as keys and corresponding ...
ckzilla's user avatar
  • 415
4 votes
4 answers
1k views

Hey. I'm trying to create an enemy that travels at a speed s on screen but I'm having trouble with trying to make the speed vary in a smooth motion. Basically, I ...
Skoder's user avatar
  • 367
0 votes
2 answers
330 views

I've done some basic 1 D integration, but i can't wrap my head around things and apply it to my graph layout. So, consider the picture below: if i drag the red node to the right, i'm forcing his ...
Cumatru's user avatar
  • 167
11 votes
3 answers
5k views

I'm designing a game with random generated dungeons. I'd like to view this as a connected, undirected graph in which nodes are rooms and edges are doors or corridors. Then I choose a "side" node as ...
Splo's user avatar
  • 736
3 votes
6 answers
2k views

I am familiar with how the common ones technically work (BFS, DFS, Dijkstra, A*) but as far as their realistic benefits I don't quite see the need for them. Considering that, given the right ...
Steven Evers's user avatar