Graph Difference

Author

Eric W. Weisstein
March 15, 2017

This notebook downloaded from http://mathworld.wolfram.com/notebooks/GraphTheory/GraphDifference.nb.

For more information, see Eric's MathWorld entry http://mathworld.wolfram.com/GraphDifference.html.

©2017 Wolfram Research, Inc. except for portions noted otherwise

Example

Built-in

GraphicsRow[{g=CompleteGraph[4],h=CycleGraph[4],GraphDifference[g,h]}]

Combinatorica

ShowGraphArray[{g=CompleteGraph[4],h=Cycle[4],GraphDifference[g,h]},
VertexStyle->Disk[.06],
VertexColor->Red]