my program compares A* pathfinding algorithm to dijkstra's algorithm showing how informed searches are better than uninformed. in the write up i explained how a grid is actually a graph with equal distance between noded as such that grid(0,0) and grid(0,1) are nodes, and the moving between them is the edges of the graph.
i also represented it visually.
my question is how would you represent an obstacle in graph form? (An obstacle is defined as a grid Position that cannot be traversed.
would it be a) where the node is unreachable
or would it be b) where the directions allow an in but not and out, so it should be avoided?



