Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'SetEdgeWeights' topicStudent Support Forum > General > Archives > "SetEdgeWeights"

Next Comment >Help | Reply To Topic
Author Comment/Response
08/26/08 10:46am

my problem is that i can't operate this function when i want to modify the edge weight on a specific edges.

g = EmptyGraph[0]
g = AddVertices[g, 2]
g = AddEdge[g, {1, 2}]
SetEdgeWeights[g, {{1, 2}}, {5}]

this example doesn't work
i will be happy for an example how to use this function.


URL: ,

Subject (listing for 'SetEdgeWeights')
Author Date Posted
SetEdgeWeights nadav 08/26/08 10:46am
Re: SetEdgeWeights yehuda ben-s... 08/27/08 00:52am
Next Comment >Help | Reply To Topic