Wolfram Language & System 11.0 (2016)|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 vi and edges from vi to vj whenever f[vi,vj] is True.

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

Details and OptionsDetails and Options

  • RelationalGraph 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 RelationalGraph:
  • Automaticundirected graph if crit[vi,vj]==crit[vj,vi]
    Trueconstruct a directed graph
    Falseconstruct an undirected graph
Introduced in 2015
(10.2)