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 > GraphDifference >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Operations and Modifications > GraphDifference >
Mathematica > Mathematics and Algorithms > Graphs & Networks > Constructing Graphs > Graph Operations and Modifications > GraphDifference >

GraphDifference

GraphDifference
gives the graph difference of the graphs and .
The graph difference of two graphs with some vertices being the same:
The graph difference of two graphs with some vertices being the same:
In[1]:=
Click for copyable input
Out[1]=
GraphDifference works with undirected graphs:
Directed graphs:
The vertices of the graph difference are the union of the vertices of the graphs:
The edges of the graph difference are the complement of the edges of the graphs:
The graph difference of any graph and itself is an empty graph:
The graph difference of any graph and its CompleteGraph is isomorphic to the complement of the graph:
The GraphDifference of two graphs has the same vertices as GraphUnion:
The GraphDifference of two graphs has the same vertices as GraphIntersection:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF