Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Operations and Modifications > EdgeAdd >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Operations and Modifications > EdgeAdd >
Mathematica > Mathematics and Algorithms > Graphs & Networks > Constructing Graphs > Graph Operations and Modifications > EdgeAdd >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF