Skip to content

EdgeList ​

The edges of a Graph, as declared, in order.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageEdgeList✓
EdgeList(g)every edge of gg (UndirectedEdge/DirectedEdge), in declaration order.
Typed signatures
TypePackageApplies
(value) -> list<value>combinatoricsalways

Domain: Collections

Examples

Basic #

Edges of a mixed undirected/directed graph

live ↗
InEdgeList(Graph([UndirectedEdge(2,1),DirectedEdge(1,3)]))\mathrm{EdgeList}(\mathrm{Graph}(\bigl\lbrack\mathrm{UndirectedEdge}(2, 1), \mathrm{DirectedEdge}(1, 3)\bigr\rbrack))Out[UndirectedEdge(2,1),DirectedEdge(1,3)]\bigl\lbrack\mathrm{UndirectedEdge}(2, 1), \mathrm{DirectedEdge}(1, 3)\bigr\rbrack
Properties #

A single-edge graph has exactly one entry in its edge list

live ↗
InLength(EdgeList(g))\mathrm{Length}(\mathrm{EdgeList}(g))Out11
About
Examples2
Checked againstWolfram Language 2 agree
CrosswalkWolfram Language

See also: Graph, VertexList, EdgeCount