Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

RelationGraph

RelationGraph[f,{v1,v2,}]
gives the graph with vertices and edges from to whenever is True.

RelationGraph[f,{v1,v2,},{w1,w2,}]
gives the graph with vertices and edges from to whenever is True.

Details and OptionsDetails and Options

  • takes the same options as Graph.
  • The option DirectedEdges can be used to control whether an undirected or directed graph is constructed.
  • The following settings for DirectedEdges can be used in :
  • Automaticundirected graph if
    Trueconstruct a directed graph
    Falseconstruct an undirected graph
Introduced in 2015
(10.2)