This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

EdgeAdd

EdgeAdd
makes a graph by adding the edge e to the graph g.
EdgeAdd
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:
In[1]:=
Click for copyable input
Out[1]=
EdgeAdd works with undirected graphs:
Directed graph:
Add a set of edges to the graph:
Works with large graphs:
New in 8