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)


makes a graph by adding the edge e to the graph g.

adds a collection of edges to g.

uses rules vw to specify the graph g.


  • EdgeAdd[g,e] will add the edge e and create a multiple edge if the edge already exists in g.
  • An undirected edge can be specified using vw or UndirectedEdge[v,w].
  • A directed edge can be specified using vw or DirectedEdge[v,w].
  • EdgeAdd works with undirected graphs, directed graphs, multigraphs, and mixed graphs.
Introduced in 2010
| Updated in 2015