This is documentation for Mathematica 8, which was
based on 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.
  • EdgeAdd will add the edge e and create a multiple edge if the edge already exists in g.
Add an edge to a graph:
Add an edge to a graph:
Click for copyable input
EdgeAdd works with undirected graphs:
Directed graph:
Add a set of edges to the graph:
Works with large graphs:
New in 8