The object ComplexGraph draws a simplicial complex.
Variable | Type | Default value | Description |
---|---|---|---|
VertexList | List of vertices | - | Determines the vertices of the graph |
SimplexList | List of edges | - | Determines the list of simplices of the graph |
Color | Color | < 0.2, 0.2, 0.2 > | Determines the standard color of the graph. This is also the color of all edges and vertices whose color is not given. |
Draw | Draw | Close |
Draw style. See Type for more information. |
Placer | String | None |
Runs a defined placer on the graph before it's being displayed. Available placers are: simplePlacer, kk |
Variable | Type | Default value | Description |
---|---|---|---|
Color | Color | Color of graph | Determines the color of the vertice. |
Position | Vector | - | Determines the position of the vertice |
Contain | Primitive | Sphere | Defines the structure that represents the vertex |
Label | String | - | Defines a label displayed along with the vertex. |
Variable | Type | Default value | Description |
---|---|---|---|
Color | Color | Color of graph | Determines the color of the simplex. |
SimplexList | List of simplices | - | Determines the list of vertices. By default only simplices with more than one vertex are being displayed. |
Draw | Draw | Close | Draw style. See Type for more information. |
Label | String | - | Defines a label displayed along with the simplex. |
Variable | Type | Default value | Description |
---|---|---|---|
PlaceAll | Boolean | false | Performs a placing for all vertices, even if position is given. By default only those vertices are placed whose position is not given. |
ShowCours | Boolean | false | Shows the trajectory of the vertices while placing. Works only with simplePlacer and kk. |
SaveTo | String | - | The graph will be saved to an ImoView file after placing. |
![]() |
Scene complex { ComplexGraph { Color <0.0,1.0,0.0> VertexList[ Vertex red{ Label "red" Position <-1.4,2.7,-0.5> Color <1.,0.,0.> }, Vertex yellow{ Label "yellow" Position <-1.4,-2.4,0.2> Color <1.,1.,0.> }, Vertex green{ Label "green" Position <2.4,1.9,2.0> Color <0.,1.,0.>}, Vertex blue{ Label "blue" Position <2.7,5.4,-1.8> Color <0.,0.,1.> }, Vertex white{ Label "white" Position <2.5,0.2,-1.9> Color <1.,1.,1.> } ] SimplexList[ Simplex { Label "Daffodil" VertexList [yellow] Color <0.,1.,0.> }, Simplex { Label "Rose" VertexList [red,yellow,white] Color <0.,1.,0.> }, Simplex { Label "Carnation" VertexList [red,white] Color <0.,1.,0.> }, Simplex { Label "Pansy" VertexList [red,blue,white] Color <0.,1.,0.> } ] } } Show complex |