예제 #1
0
 public void AddNode(GraphNode node)
 {
     nodeSet.Add(node);
 }
예제 #2
0
 public void AddDirectedEdge(GraphNode from, GraphNode to, int cost = 100000)
 {
     from.neighbors.Add(to);
     from.Costs.Add(cost);
 }