New in Wolfram
Mathematica
8: Modelado de grafos y de redes
◄
previous
|
next
►
Áreas de aplicación
Biblioteca incorporada de formas de aristas
Mathematica
8 tiene una colección detallada de funciones de formas aristas incorporadas.
In[1]:=
X
shapes = {"CarvedArrow", "DashedLine", "DiamondLine", "DottedLine", "FilledArcArrow", "HalfFilledArrow", "HalfUnfilledDoubleArrow", "ShortCarvedArcArrow", "UnfilledArrow"};
In[2]:=
X
graphs = Graph[{1 \[UndirectedEdge] 2, 1 \[UndirectedEdge] 6, 2 \[UndirectedEdge] 4, 2 \[UndirectedEdge] 3, 4 \[UndirectedEdge] 5, 5 \[UndirectedEdge] 1, 6 \[UndirectedEdge] 2}, EdgeShapeFunction -> {{#, "ArrowSize" -> .06}}, VertexSize -> 0.1, VertexStyle -> Directive[EdgeForm[None], GrayLevel[0.7]], PlotLabel -> Style[#, 11, FontFamily -> "Verdana"], EdgeStyle -> Hue[.6, 1, .6], ImageSize -> {180, 150}] & /@ shapes;
In[3]:=
X
Grid[Partition[graphs, {3}], Frame -> All, FrameStyle -> LightGray]
Out[3]=