|
SOLUTIONS
|
-
函数
- AdjacencyMatrix
- DirectedEdge
- DirectedGraphQ
- EdgeCapacity
- EdgeCount
- EdgeIndex
- EdgeLabels
- EdgeList
- EdgeQ
- EdgeRules
- EdgeShapeFunction
- EdgeStyle
- EdgeWeight
- Export
- Graph
- GraphHighlight
- GraphHighlightStyle
- GraphLayout
- GraphQ
- GraphStyle
- IncidenceMatrix
- KirchhoffMatrix
- Properties
- Property
- PropertyList
- PropertyValue
- RemoveProperty
- SetProperty
- UndirectedEdge
- UndirectedGraphQ
- VertexCapacity
- VertexCoordinates
- VertexCount
- VertexIndex
- VertexLabels
- VertexList
- VertexQ
- VertexShape
- VertexShapeFunction
- VertexSize
- VertexStyle
- VertexWeight
- WeightedAdjacencyMatrix
- 相关指南
图表示和属性
图是 Mathematica 中的一等公民,可用于输入、输出、编程以及文档中. 无向图和有向图是一致对待的,且支持顶点与边的许多标准属性. 重要的是,图也支持为了建模或计算灵活性的自定义属性. 图可以转换成许多不同的表示形式,包括矩阵. 图可以高保真地导出到各种文件格式.
参考资料参考资料
Graph — 表示普通的图,或由顶点和边创建图
UndirectedEdge — 一条无向边 (
)
DirectedEdge — 一条有向边 (
)
GraphQ ▪ UndirectedGraphQ ▪ DirectedGraphQ ▪ EdgeQ ▪ VertexQ
基本属性
VertexCount, EdgeCount — 图中的顶点和边数
VertexList, EdgeList — 图中顶点和边的列表
VertexIndex, EdgeIndex — 图中顶点和边的索引
EdgeRules — 作为规则列表的边的列表
标准属性
EdgeShapeFunction, EdgeStyle, EdgeLabels — 对边进行渲染、样式处理和添加标签
VertexShapeFunction, VertexStyle, VertexLabels — 对顶点进行渲染、样式处理和添加标签
GraphLayout, GraphStyle, GraphHighlightStyle — 对图进行布局、样式处理和突出显示
EdgeWeight ▪ EdgeCapacity ▪ VertexShape ▪ VertexWeight ▪ VertexCapacity ▪ VertexCoordinates ▪ VertexSize ▪ GraphHighlight
自定义属性 »
Property — 顶点和边的属性封装
PropertyValue — 获得且设置顶点或边属性值
PropertyList ▪ SetProperty ▪ RemoveProperty ▪ Properties
矩阵表示 »
AdjacencyMatrix — 顶点-顶点邻接矩阵
IncidenceMatrix ▪ KirchhoffMatrix ▪ WeightedAdjacencyMatrix ▪ ...
导出图 »
Export — 把图导出为多个图格式
"GraphML" ▪ "GXL" ▪ "Graphlet" ▪ "Pajek" ▪ "TGF" ▪ "DOT" ▪ "DIMACS" ▪ "Graph6" ▪ "Sparse6" ▪ "LEDA"






