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 >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Operations and Modifications >
Mathematica > Mathematics and Algorithms > Graphs & Networks > Constructing Graphs > Graph Operations and Modifications >
Graph Operations and Modifications
A graph with a certain property can often be built starting from another graph. They may be a subgraph of a larger graph, they can be incrementally modified by deleting or adding elements, or they can built by combining multiple graphs using Boolean operations. Mathematica provides an extensive collection of functions for producing new graphs from old.
Selecting Subgraphs
Subgraph extract a subgraph containing vertices, edges, or combinations
NeighborhoodGraph extract a subgraph up to some distance from a graph element
Conversion of Graphs
UndirectedGraph convert a directed graph to an undirected graph
DirectedGraph convert an undirected graph to a directed graph
Modifications of Graphs
VertexReplace replace vertices using rules
Operations on Graphs
BooleanGraph Boolean combination of graphs
LineGraph gives the line graph where edges become vertices and vice versa
GraphPower graph with all vertices adjacent that are n steps or fewer apart
MORE ABOUT
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF