WLJS LogoWLJS Notebook

EdgeRules

EdgeRules[g] gives the list of edge rules for the graph g.

Examples

Get edge rules:

EdgeRules[Graph[{1 <-> 2, 2 <-> 3}]]
(* {1 -> 2, 2 -> 3} *)

For a directed graph:

EdgeRules[Graph[{1 -> 2, 2 -> 3}]]
(* {1 -> 2, 2 -> 3} *)

Please visit the official Wolfram Language Reference for more details.

On this page