Comment spécifier si le graphe est orienté ou non orienté ?

0 vues

Réponse

Le paramètre `direction` est utilisé pour cela. Spécifiez `direction='DIRECTED'` pour un graphe orienté, où le flux va du nœud 'from' au nœud 'to'. Utilisez `direction='UNDIRECTED'` pour un graphe non orienté, où le flux peut aller dans les deux sens sur un lien.
Did this answer help you?
minCostFlow

optNetwork

See technical action