How to Graph a Relation and Identify Its Properties
At a glance
- 1. List the elements
Use the set as the graph’s vertices, and write down every ordered pair in the relation.
- 2. Draw directed edges
For each pair (a, b), draw an arrow from a to b; a pair (a, a) is a loop.
- 3. Check each property
Test loops, reverse arrows, and two-edge paths against the relation’s definitions.
- 4. Verify missing pairs
A property can fail because a required loop, reverse arrow, or shortcut edge is absent.
A relation on a set can be represented as a directed graph, which makes its structure easier to inspect. Each element becomes a vertex, and each ordered pair in the relation becomes an arrow. From the graph, you can check common properties such as reflexivity, symmetry, antisymmetry, and transitivity.
This method applies most directly when the set is finite. For an infinite set, the same definitions still apply, but drawing every vertex and arrow may not be possible.
Turn the relation into a directed graph
A relation on a set is a set of ordered pairs whose entries come from . The notation means .
To graph a finite relation:
- Draw one vertex for each element of .
- For every pair , draw an arrow from to .
- Draw a loop at if .
The direction matters: an arrow from to does not automatically mean there is an arrow from to . For instance, a relation written as “is less than or equal to” is represented by arrows from smaller elements to larger ones.
Read the standard properties from the graph
The definitions below describe relations on a set . They also give practical checks for a finite directed graph.
| Property | Definition | Graph test |
|---|---|---|
| Reflexive | for every | Every vertex has a loop. |
| Symmetric | If , then | Every arrow between distinct vertices has a reverse arrow. |
| Antisymmetric | If and , then | No two distinct vertices have arrows in both directions. |
| Transitive | If and , then | Every two-edge path has a direct arrow . |
Symmetry and antisymmetry are different tests. A symmetric relation requires reverse arrows; an antisymmetric relation rules out reverse arrows between distinct vertices. A relation can be both (for example, equality), neither, or just one of the two.
When checking transitivity, consider every possible two-edge path, including paths that use loops. The required direct arrow may be a loop when the path begins and ends at the same vertex.
Worked example
Let and define
The graph has vertices , a loop at each vertex, arrows in both directions between and , and an arrow from to 3213$.
Now test the properties:
- Reflexive: Yes. All three loops are present: , , and .
- Symmetric: No. The arrow has no reverse arrow .
- Antisymmetric: No. There are arrows and , even though .
- Transitive: No. The path would require an arrow , which is absent.
One failed test is enough to show that a relation does not have a property. You do not need to check every pair after finding a counterexample, although checking all pairs can help confirm the properties that do hold.
A useful comparison: the order relation
On , consider the relation . Its pairs are
The graph has a loop at every vertex, and arrows from each number to itself and to every larger number. This relation is reflexive, antisymmetric, and transitive, but not symmetric: while . A relation that is reflexive, antisymmetric, and transitive is called a partial order. The graph can be drawn more simply as a Hasse diagram by omitting loops and arrows implied by transitivity, but those omissions are a drawing convention; the relation itself still contains the corresponding pairs.
Common mistakes
- Ignoring direction: For a relation, and are separate facts. Draw separate arrows unless the graph is explicitly being used to represent an undirected relation.
- Forgetting loops: Reflexivity requires a loop at every element, not merely at some of them. A loop is also a pair that can matter when testing transitivity.
- Confusing antisymmetry with asymmetry: Antisymmetry allows loops and allows arrows in one direction between distinct elements. It only forbids arrows in both directions between distinct elements. Asymmetry is stronger: it forbids loops as well as reverse-arrow pairs.
- Checking only adjacent pairs for transitivity: Transitivity concerns every two-edge path. If and , check whether is present, even when the three vertices are different.
- Treating a missing arrow as proof of a property: A missing reverse arrow can support antisymmetry, but symmetry requires every arrow to have a reverse. Always match the graph to the exact definition.
For a large finite relation, you can also record the pairs in a matrix: put a in row , column exactly when . The same tests apply, but the directed graph is often easier to interpret visually.
References
- Discrete Mathematics and Its Applications, Kenneth H. Rosen
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.