Mathematica基础——GraphPlot

 时间:2024-10-15 10:43:40

1、比如下图,虽然代码里面显示,图应该是有向图,但结果却没有明确指定方向:GraphPlot[{1 -> 2, 2 -> 1, 3 -> 1, 3 -> 2, 8 -> 1, 8 -> 2, 8 -> 8}]

Mathematica基础——GraphPlot

3、如果需要写出各顶点的标签,需要用VertexLabeling -> True来限制:GraphPlot[{1 -> 2, 2 幻腾寂埒-> 1, 3 -> 1, 3 -> 2, 8 -> 1, 8 -> 2, 8 -> 8}, DirectedEdges -> True, VertexLabeling -> True]VertexLabeling的意思是,标注顶点。

Mathematica基础——GraphPlot

5、Mathematica可以轻松地绘制出一个36阶的完全图,感觉有点密集:GraphPlot[Table[1, {20}, {20}]]

Mathematica基础——GraphPlot
  • Excel怎么使用平方根函数SQRT
  • 一个函数返回来两个值怎么做
  • python交互模式怎么打开
  • matlab怎么建立矩阵
  • 热门搜索
    团购旅游 泰宁旅游攻略 张家界凤凰旅游 四川省旅游局 少林寺旅游攻略 中国水上旅游网 香港旅游景点大全 中山旅游景点 苏州旅游地图 游侠客旅游网