Message Boards Message Boards

IGraph/M showcase: meshes, planarity, symmetry, colouring

Posted 6 years ago
Attachments:
POSTED BY: Szabolcs Horvát
4 Replies

enter image description here -- you have earned Featured Contributor Badge enter image description here

Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD

This is a first experiment for me in inlining a notebook:

POSTED BY: Szabolcs Horvát

This is a small tiling explorer with IGraph/M, just for fun :-)

Needs["IGraphM`"]

colorMesh[colNum_][mesh_] := 
 SetProperty[{MeshRegion[mesh, 
    MeshCellStyle -> {1 -> Directive[White, Thick]}], {2, All}}, 
    MeshCellStyle -> ColorData[colNum] /@ IGMinimumVertexColoring@IGMeshCellAdjacencyGraph[mesh, 2]
]

Manipulate[
 colorMesh[colorScheme]@IGLatticeMesh[lattice, Disk[{0, 0}, 10.0], ImageSize -> Large],
 {lattice, IGLatticeMesh[]},
 {{colorScheme, 97}, 1, 114, 1}
]

enter image description here

POSTED BY: Szabolcs Horvát

Your passion for this project clearly shines through, Szabolcs! Thank you for sharing the fruits of your many (many, many) hours of labor. All the best!

POSTED BY: Todd Allen
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract