Wolfram mathematica 如何更改附加到整个图形的属性

Wolfram mathematica 如何更改附加到整个图形的属性,wolfram-mathematica,mathematica-8,Wolfram Mathematica,Mathematica 8,有人知道如何更改图形属性“Norm”吗。命令 G = SetProperty[G, "GraphProperties" -> {"Norm" -> 1}] 不像我想象的那样工作。这是图形构造函数 G = Graph[{Property[1, "Potential" -> 11],2,3,4}, {Property[2 -> 1, "PreferenceIntensity" -> 5], 3 -> 1, 3 -> 2, 1 ->

有人知道如何更改图形属性“Norm”吗。命令

G = SetProperty[G, "GraphProperties" -> {"Norm" -> 1}]
不像我想象的那样工作。这是图形构造函数

G = Graph[{Property[1, "Potential" -> 11],2,3,4},
          {Property[2 -> 1, "PreferenceIntensity" -> 5], 3 -> 1, 3 -> 2, 1 -> 4},
          EdgeWeight -> {5, 3, 4, 2},
          Properties -> {"GraphProperties" -> {"Norm" -> 5}},
          VertexLabels -> "Name", ImagePadding -> 10] ;
谢谢。

这可能有用:

In[1]:= g = Graph[{1 \[DirectedEdge] 2, 2 \[DirectedEdge] 3, 3 \[DirectedEdge] 1}, 
    Properties -> {"GraphProperties" -> {"Norm" -> 1}}];
g2 = SetProperty[g, Properties -> {"GraphProperties" -> {"Norm" -> 5}}];
PropertyValue[#, "Norm"] & /@ {g, g2}


Out[1]= {1, 5}
Graph[G, Properties -> {"GraphProperties" -> {"Norm" -> 1}}]
一般来说,您应该避免创建以大写字母开头的符号名称,因此将来使用
g