我剛花了幾個小時試圖轉換使用Mathematica 7的GraphPlot
的some old code以使用新的Mathematica 8 Graph函數。這似乎明智的,因爲新的圖形繪製是好得多,它有像AdjacencyMatrix
和KirchhoffMatrix事情內置的。Mathematica中的多圖形8
問題是,我無法弄清楚如何獲得與多個邊緣曲線在MMA的8個工作。
我作爲我的典型的例子使用的費曼圖表是兩個迴路真空圖表
GraphPlot[{1 -> 2, 1 -> 2, 1 -> 2}, MultiedgeStyle -> .5,
DirectedEdges -> True, VertexCoordinateRules -> {{-1, 0}, {1, 0}}]
設法使類似的圖在MMA中8
Graph[{DirectedEdge[1, 2], DirectedEdge[1, 2], DirectedEdge[1, 2]},
VertexCoordinates -> {{-1, 0}, {1, 0}}]
產生了錯誤信息
Graph::supp: Mixed graphs and multigraphs are not supported. >>
我如何構建(及一起工作)使用Mathematica 8的Graph[]
對象類似的圖形?
編輯:這個問題仍然在數學9
在Mma8中浮動的三種不同的圖形類型對象不會產生問題......尤其是因爲它們不能很好地一起玩。 – Simon 2011-03-30 11:00:34