Builds a graph whose edges connect vertex pairs satisfying a binary relation
RelationGraph[f, {v1, v2, …}]
RelationGraph[f, {v1, v2, …}, {w1, w2, …}]
RelationGraph[#1 < 6 && #2 ≥ 6&, {1, 2, 3, 4, 5, 6, 7, 8}]
→ Graph[<8>, <15>]RelationGraph[CoprimeQ, {1, 2, 3, 4, 5, 6, 7}, GraphLayout -> "LayeredDigraphEmbedding"]
→ Graph[<7>, <18>]RelationGraph[f, Divisors[24]]
→ Graph[<8>, <0>]- AlignmentPoint — default Center
- AnnotationRules — default { }
- AspectRatio — default Automatic
- Axes — default False
- AxesLabel — default None
- AxesOrigin — default Automatic
- AxesStyle — default { }
- Background — default None
- BaselinePosition — default Automatic
- BaseStyle — default { }
- ContentSelectable — default Automatic
- CoordinatesToolOptions — default Automatic
- DirectedEdges — default Automatic
- EdgeLabels — default None
- EdgeLabelStyle — default Automatic
- EdgeShapeFunction — default Automatic
- EdgeStyle — default Automatic
- EdgeWeight — default Automatic
- Epilog — default { }
- FormatType — default TraditionalForm
- Frame — default False
- FrameLabel — default None
- FrameStyle — default { }
- FrameTicks — default Automatic
- FrameTicksStyle — default { }
- GraphHighlight — default { }
- GraphHighlightStyle — default Automatic
- GraphLayout — default Automatic
- GridLines — default None
- GridLinesStyle — default { }
- ImageMargins — default 0.
- ImagePadding — default All
- ImageSize — default Automatic
- LabelStyle — default { }
- Method — default Automatic
- PerformanceGoal — default Automatic
- PlotLabel — default None
- PlotRange — default All
- PlotRangeClipping — default False
- PlotRangePadding — default Automatic
- PlotRegion — default Automatic
- PlotTheme — default $PlotTheme
- PreserveImageOptions — default Automatic
- Prolog — default { }
- RotateLabel — default True
- Ticks — default Automatic
- TicksStyle — default { }
- VertexCoordinates — default Automatic
- VertexLabels — default None
- VertexLabelStyle — default Automatic
- VertexShape — default Automatic
- VertexShapeFunction — default Automatic
- VertexSize — default Medium
- VertexStyle — default Automatic
- VertexWeight — default Automatic