gives the list of faces of the planar graph g.
PlanarFaceList
gives the list of faces of the planar graph g.
Details and Options
- PlanarFaceList is also known as faces or regions.
- PlanarFaceList is typically used to give vertices of the dual of a planar graph.
- PlanarFaceList[g] gives a list of faces {f1,f2,…} of the graph g, where the face fi={vi1,vi2,…} is bounded by vertices vij and edges between them.
- With the setting IncludeOuterFace False, the outer face is excluded from the result.
Examples
open all close allBasic Examples (2)
The list of faces of a planar graph:
GraphData[{"Antiprism", 4}]PlanarFaceList[%]The three-dimensional HypercubeGraph is planar:
PlanarGraph[HypercubeGraph[3]]PlanarFaceList[%]Scope (4)
PlanarFaceList works with undirected graphs:
PlanarFaceList[[image]]PlanarFaceList[[image]]PlanarFaceList[[image]]PlanarFaceList[[image]]Options (1)
Applications (1)
Color the graph of a trabecular bone structure:
i = [image];b = ColorNegate[Image[WatershedComponents[i]]];g = MorphologicalGraph[b]Find faces and corresponding colors:
faces = PlanarFaceList[g];colors = FindPlanarColoring[g, ColorData[106, "ColorList"]];coords = AssociationThread[VertexList[g] -> GraphEmbedding[g]];Graphics[Table[Style[Polygon[faces[[i]] /. coords], colors[[i]]], {i, Length[colors]}]]Properties & Relations (2)
Use DualPlanarGraph to get the dual of planar graphs:
DualPlanarGraph[[image]]Use FindPlanarColoring to find a coloring for the faces of planar graphs:
FindPlanarColoring[[image]]Possible Issues (3)
PlanarFaceList returns faces based on the given layout:
Graph[[image], GraphLayout -> "PlanarEmbedding"]PlanarFaceList[%]PlanarFaceList returns faces based on the given coordinates:
Graph[[image], VertexCoordinates -> {{0, 0}, {3, 0}, {1, 1}, {0, 3}}]PlanarFaceList[%]PlanarFaceList can return non-simple faces:
PlanarFaceList[[image]]Related Guides
History
Text
Wolfram Research (2021), PlanarFaceList, Wolfram Language function, https://reference.wolfram.com/language/ref/PlanarFaceList.html.
CMS
Wolfram Language. 2021. "PlanarFaceList." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PlanarFaceList.html.
APA
Wolfram Language. (2021). PlanarFaceList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PlanarFaceList.html
BibTeX
@misc{reference.wolfram_2026_planarfacelist, author="Wolfram Research", title="{PlanarFaceList}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/PlanarFaceList.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_planarfacelist, organization={Wolfram Research}, title={PlanarFaceList}, year={2021}, url={https://reference.wolfram.com/language/ref/PlanarFaceList.html}, note=[Accessed: 12-June-2026]}