/// <summary> /// Ajout liens /// </summary> /// <param name="from">noeud de départ</param> /// <param name="to">noeud d'arrivée</param> /// <param name="weight">poids entre les 2 noeuds</param> public void AddEdge(GraphNode from, GraphNode to, int weight) { GraphEdge newEdge = new GraphEdge(from, to, weight); nodesKeyEdgeValues[from].AddLast(newEdge); if (IsSensUniqLinkEdge == false) { GraphEdge backEdge = new GraphEdge(to, from, weight); nodesKeyEdgeValues[to].AddLast(backEdge); } }