Bug introduced in 9.0 or earlier and fixed in 12.0
I am trying to add a new edge to an existing graph and set its capacity, but for some reason the SetProperty
call is not evaluated. A minimal example:
g = Graph[{1 -> 2, 2 -> 3}, EdgeCapacity -> {10, 20}];
gt = EdgeAdd[g, 1 -> 3];
gt = SetProperty[{gt, 1 -> 3}, EdgeCapacity -> 10]
(* Out: SetProperty[{*graph with new edge pic*, 1 -> 3}, EdgeCapacity -> 10]*)
However, if I call SetProperty
with EdgeWeight
or EdgeLabels
instead, it works fine. What is the proper way to set a new edge capacity?
I am using version 10.3.0.
PropertyValue[gt, EdgeCapacity]
instead ofSetProperty
, I get a message saying part 3 of {1,3} does not exist, instead of$Failed
. $\endgroup$g
. $\endgroup$