construct underlying graph
one or more options as specified below
Specifies whether directed edges should be permitted in the graph returned. If true, the result will be a directed graph if the input was directed. The default value, false, produces an undirected graph.
Specifies whether self-loops should be included in the graph returned. If true, the result will contain any self-loops present in the input. The default value, false, excludes all self-loops from the output.
Specifies whether edge weights should be included in the graph returned. If true, the result will be a weighted graph if the input was weighted. The default value, false, produces an unweighted graph.
The UnderlyingGraph(G,opts) command returns an underlying graph of a graph.
The default behavior produces a graph in which the directions of arcs and the weights of the edges (or arcs) have been dropped.
Note that UnderlyingGraph(G) = Graph(Vertices(G), Neighbors(G)).
G≔Graph 1: a directed unweighted graph with 4 vertices and 4 arc(s)
The GraphTheory[UnderlyingGraph] command was updated in Maple 2019.
The directed and weights options were introduced in Maple 2019.
For more information on Maple 2019 changes, see Updates in Maple 2019.
The selfloops option was introduced in Maple 2020.
For more information on Maple 2020 changes, see Updates in Maple 2020.
Download Help Document
What kind of issue would you like to report? (Optional)